Skip to content

Commit e93a26a

Browse files
committed
fix on isExternal function
1 parent 065cdd4 commit e93a26a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/fetch/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ function isExternal(url) {
2626
);
2727
if (
2828
typeof match[1] === 'string' &&
29-
match[1].length > 0 &&
29+
match[1].length >= 0 &&
3030
match[1].toLowerCase() !== location.protocol
3131
) {
3232
return true;
3333
}
3434
if (
3535
typeof match[2] === 'string' &&
36-
match[2].length > 0 &&
36+
match[2].length >= 0 &&
3737
match[2].replace(
3838
new RegExp(
3939
':(' + { 'http:': 80, 'https:': 443 }[location.protocol] + ')?$'

0 commit comments

Comments
 (0)