Skip to content

Commit c1631cd

Browse files
committed
1 parent 0ad8131 commit c1631cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cli/utils/is.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ module.exports = {
55
}
66

77
function isJSON (s) {
8-
return /\.json$/.test(s)
8+
return !isURL(s) && /\.json$/.test(s)
99
}
1010

1111
function isJS (s) {
12-
return /\.js$/.test(s)
12+
return !isURL(s) && /\.js$/.test(s)
1313
}
1414

1515
function isURL (s) {

0 commit comments

Comments
 (0)