feat: 网站favicon工具添加下载功能, debgu

This commit is contained in:
osiris
2024-03-08 17:41:36 +08:00
parent 101ee6dff2
commit 551343dc0e
3 changed files with 38 additions and 20 deletions
+7 -1
View File
@@ -11,4 +11,10 @@ export function isUrl(str: string): boolean {
'^(https?:\\/\\/)?'+ // protocol
'((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,})','i'); // fragment locator
return urlPattern.test(str);
}
}
const UrlUtils = {
isUrl
}
export default UrlUtils