This commit is contained in:
Nicolas Williams committed 2014-08-11 14:58:44 -05:00
1 parent c321c3b86b
commit 908c10928b
1 file changed
+1 -1
+1 -1
View File
@@ -650,7 +650,7 @@ static jv f_match(jq_state *jq, jv input, jv regex, jv modifiers, jv testmode) {
unsigned long len;
const char *fr = (const char*)input_string;
for (idx = len = 0; fr != input_string+region->end[0]; len++) {
for (idx = len = 0; fr < input_string+region->end[0]; len++) {
if (fr == input_string+region->beg[0]) idx = len, len=0;
fr += jvp_utf8_decode_length(*fr);
}