Update SrcJySet.js

pull/1/head
jevons0411 3 years ago
parent 0761663de2
commit 937760aa98
  1. 2
      SrcJySet.js

@ -576,7 +576,7 @@ function SRCSet() {
var reg = /("([^\\\"]*(\\.)?)*")|('([^\\\']*(\\.)?)*')|(\/{2,}.*?(\r|\n|$))|(\/\*(\n|.)*?\*\/)/g; var reg = /("([^\\\"]*(\\.)?)*")|('([^\\\']*(\\.)?)*')|(\/{2,}.*?(\r|\n|$))|(\/\*(\n|.)*?\*\/)/g;
html = html.replace(reg, function(word) { html = html.replace(reg, function(word) {
return /^\/{2,}/.test(word) || /^\/\*/.test(word) ? "" : word; return /^\/{2,}/.test(word) || /^\/\*/.test(word) ? "" : word;
}).replace(/^.*#.*$/mg,""); }).replace(/^.*#.*$/gm,"");
log(html); log(html);
var data = JSON.parse(html); var data = JSON.parse(html);
log('ok') log('ok')

Loading…
Cancel
Save