Skip to content

Commit

Permalink
Fix quality flaw: fix regex
Browse files Browse the repository at this point in the history
  • Loading branch information
leveretka authored and Wohops committed Apr 14, 2021
1 parent adff6b8 commit 8f54125
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 8f54125

Please sign in to comment.