feat: 网站favicon工具添加下载功能, debgu
This commit is contained in:
+7
-1
@@ -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
|
||||
Reference in New Issue
Block a user