From 6b227a9d1202adaa783192a81a7b17534d9a59b1 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Mon, 1 Mar 2021 01:13:38 +0100 Subject: [PATCH] Added space management in service.registration check. --- src/fr/devinsy/statoolinfos/checker/PropertyChecker.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fr/devinsy/statoolinfos/checker/PropertyChecker.java b/src/fr/devinsy/statoolinfos/checker/PropertyChecker.java index 97e7a27..f654199 100644 --- a/src/fr/devinsy/statoolinfos/checker/PropertyChecker.java +++ b/src/fr/devinsy/statoolinfos/checker/PropertyChecker.java @@ -162,7 +162,7 @@ public class PropertyChecker this.serviceRules.add("service.enddate", DATE, PropertyMode.OPTIONAL); this.serviceRules.add("service.status.level", "^(OK|WARNING|ALERT|ERROR|OVER|VOID)$", PropertyMode.MANDATORY); this.serviceRules.add("service.status.description", STRING, PropertyMode.OPTIONAL); - this.serviceRules.add("service.registration", "^(None|Free|Member|Client)([,;+](None|Free|Member|Client))?$", PropertyMode.MANDATORY); + this.serviceRules.add("service.registration", "^(None|Free|Member|Client)\\s*([,;+]\\s*(None|Free|Member|Client))?$", PropertyMode.MANDATORY); this.serviceRules.add("service.install.type", "^(DISTRIBUTION|PROVIDER|PACKAGE|TOOLING|CLONEREPO|ARCHIVE|SOURCES|CONTAINER)$", PropertyMode.MANDATORY); this.serviceRules.add("software.name", STRING, PropertyMode.MANDATORY);