]> git.tdb.fi Git - libs/core.git/blobdiff - source/regex.cpp
Fix a problem with MATCH_MASK handling in Regex
[libs/core.git] / source / regex.cpp
index 9ba089d09008c7fd1c23a9d700051984eab11362..7e9c8b0c713c11965f9d5f6b7c8afad4cc696926 100644 (file)
@@ -472,9 +472,9 @@ bool Regex::run(const string &str, const string::const_iterator &begin, RegMatch
                                                {
                                                        unsigned char m=*(j->citer+(c>>3));
                                                        match_result=m&(1<<(c&7));
-                                                       input_consumed=true;
-                                                       j->citer+=32;
                                                }
+                                               input_consumed=true;
+                                               j->citer+=32;
                                        }
                                        else if(instr==MATCH_ANY)
                                        {