From df16fea82d4fec38357773596a9557b4dffc053c Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Fri, 13 Oct 2017 13:09:33 +0800 Subject: [PATCH] Regex: rename "flags" with the more common "modifiers" --- src/regex_impl.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)")) {