Skip to content

Commit 43a7bd6

Browse files
committed
Fix some bugs with \b{gcb}, wb and sb
These were thinkos. These things shouldn't have been in the conditional, but after it so they are executed each time through the loop.
1 parent b4b2ec5 commit 43a7bd6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

regexec.c

+8-8
Original file line numberDiff line numberDiff line change
@@ -2087,8 +2087,8 @@ S_find_byclass(pTHX_ regexp * prog, const regnode *c, char *s,
20872087
if (reginfo->intuit || regtry(reginfo, &s)) {
20882088
goto got_it;
20892089
}
2090-
before = after;
20912090
}
2091+
before = after;
20922092
s += UTF8SKIP(s);
20932093
}
20942094
}
@@ -2101,8 +2101,8 @@ S_find_byclass(pTHX_ regexp * prog, const regnode *c, char *s,
21012101
if (reginfo->intuit || regtry(reginfo, &s)) {
21022102
goto got_it;
21032103
}
2104-
s++;
21052104
}
2105+
s++;
21062106
}
21072107
}
21082108

@@ -2143,8 +2143,8 @@ S_find_byclass(pTHX_ regexp * prog, const regnode *c, char *s,
21432143
if (reginfo->intuit || regtry(reginfo, &s)) {
21442144
goto got_it;
21452145
}
2146-
before = after;
21472146
}
2147+
before = after;
21482148
s += UTF8SKIP(s);
21492149
}
21502150
}
@@ -2162,8 +2162,8 @@ S_find_byclass(pTHX_ regexp * prog, const regnode *c, char *s,
21622162
if (reginfo->intuit || regtry(reginfo, &s)) {
21632163
goto got_it;
21642164
}
2165-
before = after;
21662165
}
2166+
before = after;
21672167
s++;
21682168
}
21692169
}
@@ -2215,9 +2215,9 @@ S_find_byclass(pTHX_ regexp * prog, const regnode *c, char *s,
22152215
if (reginfo->intuit || regtry(reginfo, &s)) {
22162216
goto got_it;
22172217
}
2218-
previous = before;
2219-
before = after;
22202218
}
2219+
previous = before;
2220+
before = after;
22212221
s += UTF8SKIP(s);
22222222
}
22232223
}
@@ -2237,9 +2237,9 @@ S_find_byclass(pTHX_ regexp * prog, const regnode *c, char *s,
22372237
if (reginfo->intuit || regtry(reginfo, &s)) {
22382238
goto got_it;
22392239
}
2240-
previous = before;
2241-
before = after;
22422240
}
2241+
previous = before;
2242+
before = after;
22432243
s++;
22442244
}
22452245
}

0 commit comments

Comments
 (0)