Set insensitive case for rule check.

This commit is contained in:
Christian P. MOMON 2021-05-13 14:56:46 +02:00
parent c672fed930
commit 54203f50a0

View file

@ -69,8 +69,8 @@ public class PropertyRule
*/ */
public PropertyRule(final String label, final String pathRegex, final String valueRegex, final PropertyMode mode) public PropertyRule(final String label, final String pathRegex, final String valueRegex, final PropertyMode mode)
{ {
this.pathPattern = Pattern.compile(pathRegex); this.pathPattern = Pattern.compile(pathRegex, Pattern.CASE_INSENSITIVE);
this.valuePattern = Pattern.compile(valueRegex); this.valuePattern = Pattern.compile(valueRegex, Pattern.CASE_INSENSITIVE);
this.mode = mode; this.mode = mode;
this.label = label; this.label = label;
} }