chore: update regex

pull/13850/head
Paolo Ricciuti 2 years ago committed by GitHub
parent d18fd1b494
commit 13f52cdf73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -322,7 +322,7 @@ export function migrate(source, { filename } = {}) {
.toString()
// for some reason replacing the magic string doesn't work
.replaceAll(
/(?<=<style[^>]*>[\s\S]*?:(?:is|not|where|has)\()([^)]+)(?=[\s\S]*?<\/style>)/gm,
/(?<=<style[^>]*>[\s\S]*?:(?:is|not|where|has)\()([\s\S]+)(?=\)[\s\S]*?<\/style>)/gm,
':global($1)'
)
};

Loading…
Cancel
Save