fix[ExternalLink]: fixed bug when url include chinese #1182
This commit is contained in:
@@ -296,3 +296,7 @@ export function deepClone(source) {
|
||||
export function uniqueArr(arr) {
|
||||
return Array.from(new Set(arr))
|
||||
}
|
||||
|
||||
export function isExternal(path) {
|
||||
return /^(https?:|mailto:|tel:)/.test(path)
|
||||
}
|
||||
|
Reference in New Issue
Block a user