Skip to content

Commit 03c17ae

Browse files
author
Nikita Kraiouchkine
committed
Update getNameOrInternalName regex
1 parent aa4ef08 commit 03c17ae

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

c/common/src/codingstandards/c/OutOfBounds.qll

+1-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ module OOB {
2222
*/
2323
bindingset[name, result]
2424
string getNameOrInternalName(string name) {
25-
result = name or
26-
result.regexpMatch("__.*_+" + name + "_.*")
25+
result.regexpMatch("^(?:__.*_+)?" + name + "(?:_[^s].*)?$")
2726
}
2827

2928
/**

0 commit comments

Comments
 (0)