summaryrefslogtreecommitdiff
path: root/src/rules/license.cpp
diff options
context:
space:
mode:
authorewewukek <ewewukek@gmail.com>2024-02-23 17:24:41 +0300
committerewewukek <ewewukek@gmail.com>2024-02-23 17:24:41 +0300
commit07a3d8dbd5d391d7be813f51bb7c941a5276aee3 (patch)
treebbd3d1ab35d9dda15f04ba47a76a943ffc1d2902 /src/rules/license.cpp
parent00cb0a5770529999191fc4484348fe89196de263 (diff)
downloadmplint-07a3d8dbd5d391d7be813f51bb7c941a5276aee3.tar.gz
mplint-07a3d8dbd5d391d7be813f51bb7c941a5276aee3.tar.bz2
mplint-07a3d8dbd5d391d7be813f51bb7c941a5276aee3.tar.xz
mplint-07a3d8dbd5d391d7be813f51bb7c941a5276aee3.zip
Switch to PCRE2 engine
Diffstat (limited to 'src/rules/license.cpp')
-rw-r--r--src/rules/license.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rules/license.cpp b/src/rules/license.cpp
index 0778831..9bd8fd9 100644
--- a/src/rules/license.cpp
+++ b/src/rules/license.cpp
@@ -25,12 +25,12 @@ bool foundManaPlus(false);
bool checkText(false);
bool foundLicenseNumber(false);
-registerRuleExt(license, "005", "(.+)[.](h|cpp|cc|inc)")
+registerRuleExt(license, "005", R"( \.(h|cpp|cc|inc)$ )")
startRule(license)
{
- if (isMatch(file, "(.*)[/]((debug|sdl2gfx)[/]([^/]*)|mumblemanager"
- "|SDLMain|utils/physfsrwops|utils/base64)[.](cpp|h)"))
+ if (isMatch(file, R"( / ( (debug|sdl2gfx)/.*? | mumblemanager | )"
+ R"( SDLMain | utils/physfsrwops | utils/base64 ) \.(cpp|h) $ )"))
{
terminateRule();
}