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 b966470 commit c2a495cCopy full SHA for c2a495c
.changeset/wicked-clouds-exercise.md
@@ -0,0 +1,5 @@
1
+---
2
+'svelte': patch
3
4
+
5
+fix: adjust regex
packages/svelte/src/compiler/phases/1-parse/index.js
@@ -11,7 +11,7 @@ import read_options from './read/options.js';
11
const regex_position_indicator = / \(\d+:\d+\)$/;
12
13
const regex_lang_attribute =
14
- /<!--[^]*?-->|<script\s+(?:[^>]*|(?:[^=>'"/]+=(?:"[^"]*"|'[^']*'|[^>\s])\s+)*)lang=(["'])?([^"' >]+)\1[^>]*>/;
+ /<!--[^]*?-->|<script\s+(?:[^>]*|(?:[^=>'"/]+=(?:"[^"]*"|'[^']*'|[^>\s]+)\s+)*)lang=(["'])?([^"' >]+)\1[^>]*>/;
15
16
export class Parser {
17
/**
0 commit comments