From 5c1d993b30674eadccd76672ef765d662071b380 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Thu, 29 Oct 2020 02:56:56 +0100 Subject: [PATCH] Improved property check rule. --- src/fr/devinsy/statoolinfos/checker/PropertyChecker.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/fr/devinsy/statoolinfos/checker/PropertyChecker.java b/src/fr/devinsy/statoolinfos/checker/PropertyChecker.java index f68d904..e327ba5 100644 --- a/src/fr/devinsy/statoolinfos/checker/PropertyChecker.java +++ b/src/fr/devinsy/statoolinfos/checker/PropertyChecker.java @@ -117,8 +117,7 @@ public class PropertyChecker this.organizationRules.add("organization.owner.logo", URL, PropertyMode.OPTIONAL); this.organizationRules.add("organization.contact.url", URL, PropertyMode.WISHED); this.organizationRules.add("organization.contact.email", EMAIL, PropertyMode.WISHED); - this.organizationRules.add("organization.legal", URL, PropertyMode.WISHED); - this.organizationRules.add("organization.legal.url", URL, PropertyMode.WISHED); + this.organizationRules.add("^organization\\.legal(\\.url)?$", URL, PropertyMode.WISHED); this.organizationRules.add("organization.guide.user", URL, PropertyMode.WISHED); this.organizationRules.add("organization.guide.technical", URL, PropertyMode.WISHED); this.organizationRules.add("organization.startdate", DATE, PropertyMode.WISHED);