Merge pull request #3 from Tria-plc/feature/examination

This commit is contained in:
Eyob T.
2026-07-09 10:31:07 +03:00
99 changed files with 22875 additions and 3492 deletions

View File

@@ -286,12 +286,12 @@ const RULES = [
id: "GLOBAL_NONCE_MARKER",
severity: "CRITICAL",
description:
"Sets a short global marker string (e.g. global['!']='8-3946') as an infection flag / re-execution guard",
"Sets a short global marker string (e.g.
test(src) {
return matchAll(src, [
// global['!'] = '8-3946' or global["x"] = "abc-123"
/global\s*\[\s*['"][^'"]{0,5}['"]\s*\]\s*=\s*['"][0-9!@#$%^&*\-]{3,20}['"]/g,
// global['!']='...' with no spaces (minified form)
//
/global\['[^']{0,5}'\]='[^']{2,20}'/g,
]);
},