Update SrcJySet.js

pull/1/head
jevons0411 3 years ago
parent 9acdd16476
commit fced8bee14
  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(/^.*#.*$/gm,"").replace(/🐞|🈲|🥒|⭐|❄|\(XPF\)|\(萝卜\)|\(神马\)|\(切\)|\(聚\)|\(XB\)|\(SP\)|\\t|\\r|\\n/g,''); }).replace(/^.*#.*$/gm,"").replace(/🐞|🈲|🥒|⭐|❄|\(XPF\)|\(萝卜\)|\(神马\)|\(切\)|\(聚\)|\(XB\)|\(SP\)|\\t|\\n/g,'');
log(html); log(html);
var data = JSON.parse(html); var data = JSON.parse(html);
log('ok') log('ok')

Loading…
Cancel
Save