We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d18fd1b commit 13f52cdCopy full SHA for 13f52cd
packages/svelte/src/compiler/migrate/index.js
@@ -322,7 +322,7 @@ export function migrate(source, { filename } = {}) {
322
.toString()
323
// for some reason replacing the magic string doesn't work
324
.replaceAll(
325
- /(?<=<style[^>]*>[\s\S]*?:(?:is|not|where|has)\()([^)]+)(?=[\s\S]*?<\/style>)/gm,
+ /(?<=<style[^>]*>[\s\S]*?:(?:is|not|where|has)\()([\s\S]+)(?=\)[\s\S]*?<\/style>)/gm,
326
':global($1)'
327
)
328
};
0 commit comments