From c98a809a15b382e0e3ecfb5163001eaebde06168 Mon Sep 17 00:00:00 2001 From: Konrad Pettersson <49250602+KonkenBonken@users.noreply.github.com> Date: Sat, 26 Apr 2025 14:47:54 +0200 Subject: [PATCH] Increases TLD max length of URL regex --- 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..ffaf047 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,63}\\b([-a-zA-Z0-9()!@:%_\\+.~#?&\\/\\/=]*)", "flag": "gm", "matchText": [ "abcdef",