From d021a6c0c619da83486da2f129ea35dc866ecfa6 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 14 Aug 2016 21:46:42 +0300 Subject: [PATCH] Fix an incorrect comparison --- source/strings/regex.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.43.0