holy shit can i stop fucking up this function for fucks sake

This commit is contained in:
2025-09-06 09:44:05 -04:00
parent 0b350d4d6e
commit c44d6292a0

View File

@@ -554,11 +554,14 @@ class fuckhtml{
case "\"":
case "'":
if(
$i > 2 && // only check if a quote could be there
$i > 1 && // only check if a quote could be there
(
(
$json[$i - 1] === "\\" &&
$json[$i - 2] === "\\"
(
$i === 2 ||
$json[$i - 2] === "\\"
)
) ||
$json[$i - 1] !== "\\"
)