mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-08 22:03:01 +02:00
fix(v2): classify link hrefs with protocol identifier as internal (#3063)
This commit is contained in:
parent
7660005db8
commit
5d08ef8ef1
1 changed files with 1 additions and 1 deletions
|
@ -6,5 +6,5 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export default function isInternalUrl(url: string): boolean {
|
export default function isInternalUrl(url: string): boolean {
|
||||||
return /^(https?:|\/\/|mailto:|tel:)/.test(url) === false;
|
return /^(\w*:|\/\/)/.test(url) === false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue