mirror of
https://github.com/typicode/json-server.git
synced 2025-07-28 04:32:24 +08:00
Fix #233
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user