fix(web): EPUB previews load styles imported without a space after @import #48126
ClosedStiensWout(GitHub profile, opens in a new tab)wants to merge 7 commits into
main fromrefs/pull/48126/headopened View on GitHubtanstack-source added labelsbug
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
- @@ -703,4 +703,4 @@703703 css = css.replace(/^\uFEFF/, "").replace(/^\s*@charset\s+["'][^"']+["']\s*;/i, "");704704 // `(?=(x))\1` makes the target and the tail atomic; backtracking into them is quadratic.705705 const prelude =706- /^\s*(?:\/\*[\s\S]*?\*\/\s*)*@import\s+(?:url\(\s*)?(?:"(?=((?:\\[\s\S]|[^"\\])+))\1"|'(?=((?:\\[\s\S]|[^'\\])+))\2'|(?=((?:\\(?:[\da-f]{6}|[\da-f]{1,5}(?![\da-f]))(?:\r\n|[ \t\r\n\f])?|\\[^\da-f]|[^\s;)\\])+))\3)(?=(\s*\)?\s*([^;]*)))\4;/i;706+ /^\s*(?:\/\*[\s\S]*?\*\/\s*)*@import(?:(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?=["'])|(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)+(?:url\(\s*)?)(?:"(?=((?:\\[\s\S]|[^"\\])+))\1"|'(?=((?:\\[\s\S]|[^'\\])+))\2'|(?=((?:\\(?:[\da-f]{6}|[\da-f]{1,5}(?![\da-f]))(?:\r\n|[ \t\r\n\f])?|\\[^\da-f]|[^\s;)\\])+))\3)(?=(\s*\)?\s*([^;]*)))\4;/i;
juliusmarminge added labelstakeover:in-progress
Pushed3f40bc1
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes
juliusmarminge added labelstakeover:blocked
juliusmarminge removed labelstakeover:in-progress
StiensWout(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.





macroscopeapp[bot](GitHub profile, opens in a new tab) reviewed