diff --git a/packages/svelte/src/compiler/phases/1-parse/index.js b/packages/svelte/src/compiler/phases/1-parse/index.js index 87e616d0a6..233a8d1617 100644 --- a/packages/svelte/src/compiler/phases/1-parse/index.js +++ b/packages/svelte/src/compiler/phases/1-parse/index.js @@ -51,10 +51,9 @@ export class Parser { const lang_matches = this.template.matchAll(regex_lang_attribute); - for(const match of lang_matches) - { - if(match[0]?.[1] === 's') // ensure it starts with '