From 6944aaa4a3a1b2dbf206d11185eec88b585c1c84 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Mon, 17 Oct 2022 13:38:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJySet.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJySet.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/SrcJySet.js b/SrcJySet.js index fcbbc186..1787984f 100644 --- a/SrcJySet.js +++ b/SrcJySet.js @@ -2255,7 +2255,11 @@ function Resourceimport(input,importtype,boxdy){ var reg = /("([^\\\"]*(\\.)?)*")|('([^\\\']*(\\.)?)*')|(\/{2,}.*?(\r|\n|$))|(\/\*(\n|.)*?\*\/)/g; html = html.replace(reg, function(word) { return /^\/{2,}/.test(word) || /^\/\*/.test(word) ? "" : word; - }).replace(/^.*#.*$/gm,"").replace(/\,\,/g,',').replace(/[\r\n]|\s+/g,'').replace(/api\"\:csp/g,'api":"csp').replace(/,\"/g,',').replace(/\"\:/g,':').replace(/\{\"/g,'{');//.replace(/=\\n\"/g,'="')|[\t\r\n] + }).replace(/^.*#.*$/gm,"").replace(/\,\,/g,',').replace(/\s+/g,''); + + html = html.replace(/<\/?.+?>/g,""); + html = html.replace(/[\r\n]/g, ""); + html = html.replace(/api\"\:csp/g,'api":"csp').replace(/,\"/g,',').replace(/\"\:/g,':').replace(/\{\"/g,'{');//.replace(/=\\n\"/g,'="')|[\t\r\n] log(html); eval('var data = ' + html) //var data = JSON.parse(html);