This commit is contained in:
Typicode
2016-02-13 22:17:49 +01:00
parent 0ad8131f87
commit c1631cd6db

View File

@ -5,11 +5,11 @@ module.exports = {
}
function isJSON (s) {
return /\.json$/.test(s)
return !isURL(s) && /\.json$/.test(s)
}
function isJS (s) {
return /\.js$/.test(s)
return !isURL(s) && /\.js$/.test(s)
}
function isURL (s) {