Skip to content

Commit 1c9a526

Browse files
committed
C++: Construct fewer strings.
1 parent 9360ae9 commit 1c9a526

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/lib/semmle/code/cpp/security/Encryption.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ predicate isInsecureEncryption(string name) { name.regexpMatch(getInsecureAlgori
6464
*/
6565
bindingset[name]
6666
predicate isEncryptionAdditionalEvidence(string name) {
67-
name.toUpperCase().matches("%" + ["CRYPT", "CODE", "CODING", "CBC", "KEY", "CIPHER", "MAC"] + "%")
67+
name.regexpMatch("(?i).*" + ["crypt", "code", "coding", "cbc", "key", "cipher", "mac"] + ".*")
6868
}
6969

7070
/**

0 commit comments

Comments
 (0)