diff --git a/src/regex_impl.cc b/src/regex_impl.cc index 4742a47a..43b0d818 100644 --- a/src/regex_impl.cc +++ b/src/regex_impl.cc @@ -135,7 +135,7 @@ private: AstNodePtr term() { - while (flag()) // read all flags + while (modifiers()) // read all modifiers {} if (auto node = assertion()) return node; @@ -158,7 +158,7 @@ private: return true; } - bool flag() + bool modifiers() { if (peek("(?i)")) {