X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fstrings%2Fregex.cpp;h=68cf374dcd2544064e45ce661ddb01768f962f1d;hp=6122fe40c557c9716cca6e88e7b2926408ad29ef;hb=9955efca718d8be72b63c7c2182ca59e7b9d0935;hpb=b537410dcd5b7e661625b51ee72b15e40045fd18 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