From: Mikko Rasa Date: Sun, 14 Aug 2016 18:46:42 +0000 (+0300) Subject: Fix an incorrect comparison X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=commitdiff_plain;h=d021a6c0c619da83486da2f129ea35dc866ecfa6 Fix an incorrect comparison --- diff --git a/source/strings/regex.cpp b/source/strings/regex.cpp index 6122fe4..68cf374 100644 --- a/source/strings/regex.cpp +++ b/source/strings/regex.cpp @@ -513,7 +513,7 @@ bool Regex::group_compare(const RegMatch::Group &g1, const RegMatch::Group &g2) // Earlier match is better if(g1.beging2.begin) + if(g1.begin>g2.begin) return false; // Longer match at same position is better