Fix empty regular expression matches (fix #2565)
This commit is contained in:
1 parent
cac216a39c
commit
600e602548
2 files changed
+15
-13
No files matched your search
+1
-1
@@ -1002,7 +1002,7 @@ static jv f_match(jq_state *jq, jv input, jv regex, jv modifiers, jv testmode) {
|
||||
jv_string((char*)ebuf)));
|
||||
break;
|
||||
}
|
||||
} while (global && start != end);
|
||||
} while (global && start <= end);
|
||||
onig_region_free(region,1);
|
||||
region = NULL;
|
||||
if (region)
|
||||
|
||||
Reference in new issue
Block a user