浏览代码

messed up json extractor again

lolcat 10 月之前
父节点
当前提交
0b350d4d6e
共有 1 个文件被更改,包括 6 次插入4 次删除
  1. 6 4
      lib/fuckhtml.php

+ 6 - 4
lib/fuckhtml.php

@@ -556,10 +556,12 @@ class fuckhtml{
 					if(
 						$i > 2 && // only check if a quote could be there
 						(
-							$json[$i - 1] === "\\" &&
-							$json[$i - 2] === "\\"
-						) ||
-						$json[$i - 1] !== "\\"
+							(
+								$json[$i - 1] === "\\" &&
+								$json[$i - 2] === "\\"
+							) ||
+							$json[$i - 1] !== "\\"
+						)
 					){
 						// found a non-escaped quote