Skip to content

Commit 13f52cd

Browse files
chore: update regex
1 parent d18fd1b commit 13f52cd

File tree

1 file changed

+1
-1
lines changed
  • packages/svelte/src/compiler/migrate

1 file changed

+1
-1
lines changed

packages/svelte/src/compiler/migrate/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ export function migrate(source, { filename } = {}) {
322322
.toString()
323323
// for some reason replacing the magic string doesn't work
324324
.replaceAll(
325-
/(?<=<style[^>]*>[\s\S]*?:(?:is|not|where|has)\()([^)]+)(?=[\s\S]*?<\/style>)/gm,
325+
/(?<=<style[^>]*>[\s\S]*?:(?:is|not|where|has)\()([\s\S]+)(?=\)[\s\S]*?<\/style>)/gm,
326326
':global($1)'
327327
)
328328
};

0 commit comments

Comments
 (0)