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