From fcbb604ac8ec2078915c5db1583d1e1c06096c1a Mon Sep 17 00:00:00 2001 From: wangxiang <1827945911@qq.com> Date: Thu, 6 Jul 2023 12:16:13 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BC=98=E5=8C=96url=E5=8C=B9?= =?UTF-8?q?=E9=85=8D=E5=8F=82=E6=95=B0=E6=94=AF=E6=8C=81=E6=9B=BF=E6=8D=A2?= =?UTF-8?q?${}?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/is.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/is.ts b/src/utils/is.ts index ca4fa9e..6c52c4c 100644 --- a/src/utils/is.ts +++ b/src/utils/is.ts @@ -101,7 +101,7 @@ export const isClient = !isServer; export function isUrl(path: string): boolean { const reg = - /(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/; + /(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_{\s\S}]*)#?(?:[\w]*))?)$/; return reg.test(path); }