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
@@ -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();