1
0
Fork 0
mirror of synced 2024-06-13 16:05:06 +12:00
This commit is contained in:
Mel O'Hagan 2022-08-09 17:28:21 +01:00
parent 40c846ce8f
commit f7c816bce9

View file

@ -126,14 +126,14 @@ module MongoDBModule {
if (c === '"') {
inQuotes = !inQuotes
}
if (c === '{' && !inQuotes) {
if (c === "{" && !inQuotes) {
openCount++
if (openCount === 1) {
startIndex = i
}
} else if (c === '}' && !inQuotes) {
} else if (c === "}" && !inQuotes) {
if (openCount === 1) {
queryParams.push(JSON.parse(params.substring(startIndex, i+1)))
queryParams.push(JSON.parse(params.substring(startIndex, i + 1)))
}
openCount--
}