fix: address PR comments

This commit is contained in:
Rakshith Gopala krishna
2024-06-03 10:57:04 -07:00
committed by Rakshith Gopalakrishna
parent 0f63f0dda2
commit 97f9a882c6

View File

@@ -15,7 +15,8 @@ private class ShortStringLiteral extends StringLiteral {
class BrokenAlgoLiteral extends ShortStringLiteral {
BrokenAlgoLiteral() {
this.getValue().regexpMatch(getInsecureAlgorithmRegex()) and
not this.getValue().regexpMatch(getASecureAlgorithmName()) and
// Exclude RSA/ECB/.* ciphers.
not this.getValue().regexpMatch("RSA/ECB.*") and
// Exclude German and French sentences.
not this.getValue().regexpMatch(".*\\p{IsLowercase} des \\p{IsLetter}.*")
}