From 01ba2e0ac8e78ad91ff8b5e2bbef74c2be39787b Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Thu, 29 Oct 2020 02:01:39 +0100 Subject: [PATCH] Added ignorecase for path matching in property checker. --- src/fr/devinsy/statoolinfos/checker/PropertyRule.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/fr/devinsy/statoolinfos/checker/PropertyRule.java b/src/fr/devinsy/statoolinfos/checker/PropertyRule.java index a949122..f212e44 100644 --- a/src/fr/devinsy/statoolinfos/checker/PropertyRule.java +++ b/src/fr/devinsy/statoolinfos/checker/PropertyRule.java @@ -21,6 +21,8 @@ package fr.devinsy.statoolinfos.checker; import java.util.regex.Matcher; import java.util.regex.Pattern; +import org.apache.commons.lang3.StringUtils; + /** * The Class PropertyRule. */ @@ -62,7 +64,7 @@ public class PropertyRule { boolean result; - Matcher matcher = this.pathPattern.matcher(value); + Matcher matcher = this.pathPattern.matcher(StringUtils.toRootLowerCase(value)); result = matcher.matches(); //