diff --git a/java-checks/src/main/java/org/sonar/java/checks/security/EncryptionAlgorithmCheck.java b/java-checks/src/main/java/org/sonar/java/checks/security/EncryptionAlgorithmCheck.java index 534217afc68..04f1897a660 100644 --- a/java-checks/src/main/java/org/sonar/java/checks/security/EncryptionAlgorithmCheck.java +++ b/java-checks/src/main/java/org/sonar/java/checks/security/EncryptionAlgorithmCheck.java @@ -38,7 +38,7 @@ @Rule(key = "S5542") public class EncryptionAlgorithmCheck extends AbstractMethodDetection { - private static final Pattern ALGORITHM_PATTERN = Pattern.compile("(.+)/(.+)/(.+)"); + private static final Pattern ALGORITHM_PATTERN = Pattern.compile("([^/]+)/([^/]+)/([^/]+)"); @Override protected MethodMatchers getMethodInvocationMatchers() {