From f8f91364fed6ca0a1ab902efdcdd2577590d7c3c Mon Sep 17 00:00:00 2001 From: filesite Date: Tue, 21 May 2024 17:07:35 +0800 Subject: [PATCH] improve url check --- common.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common.mjs b/common.mjs index f007c9b..c6edabd 100644 --- a/common.mjs +++ b/common.mjs @@ -133,7 +133,7 @@ class Common { //检查url是否符合要求 isUrlOk(url) { - return /^http(s)?:\/\/[\w\-\.\/:]{6,100}$/i.test(url); + return /^http(s)?:\/\/[\w\-\.\/:\?]{6,100}$/i.test(url); } //检查uuid是否符合要求:6-32位的英文字符串