From 4394acec562b03823fe0e87c3f3bf2568b2d12ce Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Tue, 19 Oct 2021 01:59:17 +0200 Subject: [PATCH] Fixed URL checker regex (issue from b_b). --- 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 91036f8..86df386 100644 --- a/src/fr/devinsy/statoolinfos/checker/PropertyChecker.java +++ b/src/fr/devinsy/statoolinfos/checker/PropertyChecker.java @@ -39,7 +39,7 @@ public class PropertyChecker public static final String STRING = "^.+$"; 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 URL = "^(http(s)?://)?[\\w-_\\.]+(\\.\\w+)+(:\\d+)?(/.*)?$"; public static final String EMAIL = "^.*@.*$"; public static final String NUMERIC = "^\\d+$"; public static final String NUMERICS = "^\\d*(,\\d*)*$";