From b4ef57bd7d738120660459a0a3c21fececa98afe Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Sat, 9 Jan 2021 05:53:26 +0100 Subject: [PATCH] Extended datetime property checking. --- 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 eb302af..48492eb 100644 --- a/src/fr/devinsy/statoolinfos/checker/PropertyChecker.java +++ b/src/fr/devinsy/statoolinfos/checker/PropertyChecker.java @@ -37,7 +37,7 @@ public class PropertyChecker { public static final String ALL = "^.*$"; public static final String STRING = "^.+$"; - public static final String DATETIME = "\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}(\\.\\d+)?"; + public static final String DATETIME = "\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}(:\\d{2}([\\.,]\\d+)?)?([+-]\\d\\d:\\d\\d)?"; public static final String DATE = "^(\\d{4}-\\d{2}-\\d{2}|\\d{2}/\\d{2}/\\d{4}|\\d{2}/\\d{4})"; public static final String URL = "^(http(s)?://)?[\\w-_\\.]+(\\.\\w+)+(/.*)?$"; public static final String EMAIL = "^.*@.*$";