Finetuning of regex

This commit is contained in:
Sergey
2016-12-13 14:05:11 -08:00
committed by Juan Martín Sotuyo Dodero
parent 1d5e0e5304
commit f2eb813419

View File

@@ -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";