This commit is contained in:
有来技术
2021-11-20 23:59:45 +08:00
parent 8f1a7c7a61
commit 0091a5fab2
20 changed files with 908 additions and 93 deletions

12
src/utils/validate.ts Normal file
View File

@@ -0,0 +1,12 @@
/**
* Created by PanJiaChen on 16/11/18.
*/
/**
* @param {string} path
* @returns {Boolean}
*/
export function isExternal(path : string) {
return /^(https?:|mailto:|tel:)/.test(path)
}