ytdl-core
Advanced tools
Comparing version 4.4.3 to 4.4.4
@@ -75,2 +75,5 @@ const miniget = require('miniget'); | ||
// States if the current character is treated as escaped or not | ||
let isEscaped = false; | ||
// Current open brackets to be closed | ||
@@ -82,6 +85,11 @@ let counter = 0; | ||
// Toggle the isString boolean when leaving/entering string | ||
if (mixedJson[i] === '"' && mixedJson[i - 1] !== '\\') { | ||
if (mixedJson[i] === '"' && !isEscaped) { | ||
isString = !isString; | ||
continue; | ||
} | ||
// Toggle the isEscaped boolean for every backslash | ||
// Reset for every regular character | ||
isEscaped = mixedJson[i] === '\\' && !isEscaped; | ||
if (isString) continue; | ||
@@ -88,0 +96,0 @@ |
@@ -9,3 +9,3 @@ { | ||
], | ||
"version": "4.4.3", | ||
"version": "4.4.4", | ||
"repository": { | ||
@@ -12,0 +12,0 @@ "type": "git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
91931
2458