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 d3eb8da commit 851f57fCopy full SHA for 851f57f
packages/svelte/src/compiler/phases/1-parse/index.js
@@ -51,10 +51,9 @@ export class Parser {
51
52
const lang_matches = this.template.matchAll(regex_lang_attribute);
53
54
- for(const match of lang_matches)
55
- {
56
- if(match[0]?.[1] === 's') // ensure it starts with '<s' to match script tags
57
+ for (const match of lang_matches) {
+ if (match[0]?.[1] === 's') {
+ // ensure it starts with '<s' to match script tags
58
this.ts = match[2] === 'ts';
59
break;
60
}
0 commit comments