From e9557f37f9078e947479adec9c0e51b6264ba59d Mon Sep 17 00:00:00 2001 From: Brad King <brad.king@kitware.com> Date: Tue, 5 Dec 2017 11:25:49 -0500 Subject: [PATCH] RegularExpression: Fix regression in 'find' method Fix a return value accidentally changed by commit cff58f07 (RegularExpression: New RegularExpressionMatch class, 2017-12-04). --- RegularExpression.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RegularExpression.cxx b/RegularExpression.cxx index 72596b78..fa3551c0 100644 --- a/RegularExpression.cxx +++ b/RegularExpression.cxx @@ -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 -- GitLab