mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 17:59:55 +02:00
Also check the lang in case insensitive
This commit is contained in:
parent
33e7f7384e
commit
2a9630258f
22658 changed files with 3562773 additions and 3562767 deletions
36
node_modules/safe-json-parse/callback.js
generated
vendored
36
node_modules/safe-json-parse/callback.js
generated
vendored
|
@ -1,18 +1,18 @@
|
|||
module.exports = SafeParseCallback
|
||||
|
||||
function SafeParseCallback(obj, reviver, callback) {
|
||||
if (arguments.length === 2) {
|
||||
callback = reviver
|
||||
reviver = null
|
||||
}
|
||||
|
||||
var json
|
||||
|
||||
try {
|
||||
json = JSON.parse(obj, reviver)
|
||||
} catch (err) {
|
||||
return callback(err)
|
||||
}
|
||||
|
||||
callback(null, json)
|
||||
}
|
||||
module.exports = SafeParseCallback
|
||||
|
||||
function SafeParseCallback(obj, reviver, callback) {
|
||||
if (arguments.length === 2) {
|
||||
callback = reviver
|
||||
reviver = null
|
||||
}
|
||||
|
||||
var json
|
||||
|
||||
try {
|
||||
json = JSON.parse(obj, reviver)
|
||||
} catch (err) {
|
||||
return callback(err)
|
||||
}
|
||||
|
||||
callback(null, json)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue