recognise tel: uri scheme as a non-local path (#1139)

pull/1142/head
Peter Weston 2024-11-02 21:34:26 +00:00 committed by GitHub
parent d79d84be8c
commit 83646eba37
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 1 deletions

View File

@ -52,7 +52,9 @@ export function isFederationPath(path: string): boolean {
}
export function isLocalPath(path: string): boolean {
return !path.includes("://") && !path.startsWith("mailto:");
return !path.includes("://") &&
!path.startsWith("mailto:") &&
!path.startsWith("tel:");
}
export function rewritePageRefs(tree: ParseTree, containerPageName: string) {