origin commit 23d8e32
This commit is contained in:
Vendored
+2
-2
@@ -495,8 +495,8 @@ function I(t) {
|
|||||||
function z(t, e) {
|
function z(t, e) {
|
||||||
if (!t)
|
if (!t)
|
||||||
return e;
|
return e;
|
||||||
let i = JSON.stringify(window.pageBlocks), n = "\\.ID(.*?){(.*?)}";
|
let i = JSON.stringify(window.pageBlocks), n = "\\.ID(.*?){(.*?)}", a = t.match(new RegExp(n, "g"));
|
||||||
return t.match(new RegExp(n, "g")).forEach(function(s) {
|
return a && a.forEach(function(s) {
|
||||||
let l = s.split("{")[0], r = l.replace(".", " ").trim();
|
let l = s.split("{")[0], r = l.replace(".", " ").trim();
|
||||||
e.indexOf(l) === -1 && i.indexOf(r) >= 0 && (e += s);
|
e.indexOf(l) === -1 && i.indexOf(r) >= 0 && (e += s);
|
||||||
}), e;
|
}), e;
|
||||||
|
|||||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -189,6 +189,9 @@
|
|||||||
let pageBlocksString = JSON.stringify(window.pageBlocks);
|
let pageBlocksString = JSON.stringify(window.pageBlocks);
|
||||||
let regex = "\\.ID(.*?){(.*?)}"
|
let regex = "\\.ID(.*?){(.*?)}"
|
||||||
let matches = existingCss.match(new RegExp(regex, 'g'));
|
let matches = existingCss.match(new RegExp(regex, 'g'));
|
||||||
|
if (! matches) {
|
||||||
|
return newCss;
|
||||||
|
}
|
||||||
matches.forEach(function(css) {
|
matches.forEach(function(css) {
|
||||||
let selector = css.split('{')[0];
|
let selector = css.split('{')[0];
|
||||||
let pageBlocksStringSelector = selector.replace('.', ' ').trim();
|
let pageBlocksStringSelector = selector.replace('.', ' ').trim();
|
||||||
|
|||||||
Reference in New Issue
Block a user