mirror of
https://github.com/jekip/naive-ui-admin.git
synced 2026-02-04 13:42:27 +08:00
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user