X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Fstrings%2Fregex.cpp;fp=source%2Fstrings%2Fregex.cpp;h=c62405614525dd85b32a73361bd78133e03ef29f;hp=832cd85b110ac81d245af918375ddd24256727ef;hb=c2530205a67e5d0b341827287151978652b91aaa;hpb=497e54c026f87ef020477bfe7c0249802373c630 diff --git a/source/strings/regex.cpp b/source/strings/regex.cpp index 832cd85..c624056 100644 --- a/source/strings/regex.cpp +++ b/source/strings/regex.cpp @@ -130,7 +130,8 @@ Regex::Code Regex::compile(const string &expr, string::const_iterator &iter, uns Count repeat_min = 1; Count repeat_max = 1; - parse_repeat(expr, i, repeat_min, repeat_max); + if(i!=end) + parse_repeat(expr, i, repeat_min, repeat_max); for(unsigned j=0; j