Closed 7happy7 closed 3 years ago
new RegExp('@import .*?;','gi') cannot parse some Google Fonts' URL:
new RegExp('@import .*?;','gi')
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;1,300&display=swap');
↓
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;
This bug can be fixed by changing the RegExp to new RegExp('@import (?:url\\(.*?\\)|).*?;','gi') (/@import (?:url\(.*?\)|).*?;/gi).
new RegExp('@import (?:url\\(.*?\\)|).*?;','gi')
/@import (?:url\(.*?\)|).*?;/gi
new RegExp('@import .*?;','gi')
cannot parse some Google Fonts' URL:↓
This bug can be fixed by changing the RegExp to
new RegExp('@import (?:url\\(.*?\\)|).*?;','gi')
(/@import (?:url\(.*?\)|).*?;/gi
).