origin commit 23d8e32

This commit is contained in:
Paul Spenke
2023-07-02 21:39:02 +08:00
parent d7610386e3
commit 6f921efddc
3 changed files with 6 additions and 3 deletions
+2 -2
View File
@@ -495,8 +495,8 @@ function I(t) {
function z(t, e) {
if (!t)
return e;
let i = JSON.stringify(window.pageBlocks), n = "\\.ID(.*?){(.*?)}";
return t.match(new RegExp(n, "g")).forEach(function(s) {
let i = JSON.stringify(window.pageBlocks), n = "\\.ID(.*?){(.*?)}", a = t.match(new RegExp(n, "g"));
return a && a.forEach(function(s) {
let l = s.split("{")[0], r = l.replace(".", " ").trim();
e.indexOf(l) === -1 && i.indexOf(r) >= 0 && (e += s);
}), e;
File diff suppressed because one or more lines are too long
@@ -189,6 +189,9 @@
let pageBlocksString = JSON.stringify(window.pageBlocks);
let regex = "\\.ID(.*?){(.*?)}"
let matches = existingCss.match(new RegExp(regex, 'g'));
if (! matches) {
return newCss;
}
matches.forEach(function(css) {
let selector = css.split('{')[0];
let pageBlocksStringSelector = selector.replace('.', ' ').trim();