Skip to content
Snippets Groups Projects
Commit e9557f37 authored by Brad King's avatar Brad King
Browse files

RegularExpression: Fix regression in 'find' method

Fix a return value accidentally changed by commit cff58f07
(RegularExpression: New RegularExpressionMatch class, 2017-12-04).
parent cff58f07
No related branches found
No related tags found
No related merge requests found
......@@ -901,7 +901,7 @@ bool RegularExpression::find(char const* string,
// We know what char it must start with.
while ((s = strchr(s, this->regstart)) != 0) {
if (regFind.regtry(s, rmatch.startp, rmatch.endp, this->program))
return false;
return true;
s++;
}
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment