diff options
Diffstat (limited to 'src/rules/final.cpp')
-rw-r--r-- | src/rules/final.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rules/final.cpp b/src/rules/final.cpp index bc2acb7..a968c54 100644 --- a/src/rules/final.cpp +++ b/src/rules/final.cpp @@ -20,7 +20,7 @@ #include "template.hpp" -registerRuleExt(finalCheck, "007", "(.+)[.](cpp|h)") +registerRuleExt(finalCheck, "007", R"( \.(cpp|h)$ )") startRule(finalCheck) { @@ -38,8 +38,8 @@ endRule(finalCheck) parseLineRule(finalCheck) { - if (isMatch(data, "([ ]*)(static |)(class|struct) ([a-zA-Z_0123456789]+)" - "($|( [:])([^;]+)(.*))")) + if (isMatch(data, R"( ^ \s*? (static \s+?)? (class|struct) )" + R"( \s+? \w+? \s*? ($ | :) )")) { print("Need add final or notfinal into class declaration"); } |