Finetuning of regex
This commit is contained in:

committed by
Juan Martín Sotuyo Dodero

parent
1d5e0e5304
commit
f2eb813419
@@ -27,7 +27,7 @@ import net.sourceforge.pmd.lang.apex.rule.AbstractApexRule;
|
||||
public class ApexDangerousMethodsRule extends AbstractApexRule {
|
||||
private static final String BOOLEAN = "boolean";
|
||||
|
||||
private static final Pattern regexp = Pattern.compile("^.*?(pass|pwd|crypt|auth|session|token|saml).*?$",
|
||||
private static final Pattern regexp = Pattern.compile("^.*?(pass|pwd|crypt|auth|session|token|saml)(?!id|user).*?$",
|
||||
Pattern.CASE_INSENSITIVE);
|
||||
|
||||
private static final String DISABLE_CRUD = "disableTriggerCRUDSecurity";
|
||||
|
Reference in New Issue
Block a user