From 6a4c01005fd39dd3742c21d447a095469c8564f1 Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 27 Dec 2023 11:56:00 +0100 Subject: [PATCH] fix: allow longer top-level-domains support top-level-domain of our company: 7 characters long (.schwarz) --- static/regex/data.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/regex/data.json b/static/regex/data.json index 549e55d..9fbd684 100644 --- a/static/regex/data.json +++ b/static/regex/data.json @@ -232,7 +232,7 @@ "title": "url", "tagline": "match a valid url", "description": "A valid URL with http/https", - "regex": "https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{1,256}\\.[a-zA-Z0-9()]{1,6}\\b([-a-zA-Z0-9()!@:%_\\+.~#?&\\/\\/=]*)", + "regex": "https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{1,256}\\.[a-zA-Z0-9()]{1,7}\\b([-a-zA-Z0-9()!@:%_\\+.~#?&\\/\\/=]*)", "flag": "gm", "matchText": [ "abcdef",