Merge pull request #131 from fanck0605/patch-1

fix: 修复错误的 URL 正则表达式
This commit is contained in:
Ah jung
2022-06-06 08:45:52 +08:00
committed by GitHub

View File

@@ -211,5 +211,5 @@ export function lighten(color: string, amount: number) {
* 判断是否 url
* */
export function isUrl(url: string) {
return /(^http|https:\/\/)/g.test(url);
return /^(http|https):\/\//g.test(url);
}