fix(compiler-sfc): externalRE support automatic http/https prefix url pattern (#4922)
fix #4920
This commit is contained in:
@@ -6,7 +6,7 @@ export function isRelativeUrl(url: string): boolean {
|
||||
return firstChar === '.' || firstChar === '~' || firstChar === '@'
|
||||
}
|
||||
|
||||
const externalRE = /^https?:\/\//
|
||||
const externalRE = /^(https?:)?\/\//
|
||||
export function isExternalUrl(url: string): boolean {
|
||||
return externalRE.test(url)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user