From 54203f50a0bce57ace7ec6addee087bb3885f93e Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Thu, 13 May 2021 14:56:46 +0200 Subject: [PATCH] Set insensitive case for rule check. --- src/fr/devinsy/statoolinfos/checker/PropertyRule.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fr/devinsy/statoolinfos/checker/PropertyRule.java b/src/fr/devinsy/statoolinfos/checker/PropertyRule.java index 3596bbe..67fd001 100644 --- a/src/fr/devinsy/statoolinfos/checker/PropertyRule.java +++ b/src/fr/devinsy/statoolinfos/checker/PropertyRule.java @@ -69,8 +69,8 @@ public class PropertyRule */ public PropertyRule(final String label, final String pathRegex, final String valueRegex, final PropertyMode mode) { - this.pathPattern = Pattern.compile(pathRegex); - this.valuePattern = Pattern.compile(valueRegex); + this.pathPattern = Pattern.compile(pathRegex, Pattern.CASE_INSENSITIVE); + this.valuePattern = Pattern.compile(valueRegex, Pattern.CASE_INSENSITIVE); this.mode = mode; this.label = label; }