Fix compilation issue with regex (illegal escape character)

This commit is contained in:
Clément Fournier
2023-06-02 15:01:52 +02:00
committed by GitHub
parent 49dc7b75b7
commit baf3417bff

View File

@ -34,7 +34,7 @@ public class UnusedLocalVariableRule extends AbstractApexRule {
"Database.countQuery".toLowerCase(Locale.ROOT)
));
private static final Pattern BINDING_VARIABLE = Pattern.compile("(?i):(?:\s|)([_a-z0-9]+)");
private static final Pattern BINDING_VARIABLE = Pattern.compile("(?i):\\s*+([_a-z0-9]+)");
@Override
protected @NonNull RuleTargetSelector buildTargetSelector() {