Skip to content

Commit

Permalink
fix: svelte inline template with strings
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderniebuhr committed Jul 1, 2021
1 parent d8a17b1 commit ea96627
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/filetypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const fileTypes: {[key:string]: {pattern?: RegExp, type: string}} = {
},
'svelte': {
type: 'html',
pattern: /(\s+class:\S*$)|((\s+class\s*=\s*["'`]?\s*{\s*)[^}]*$)/,
pattern: /(\s+class:\S*$)|((\s+class\s*=\s*["]?\s*{?\s*)[^"]*$)|((\s+class\s*=\s*[']?\s*{?\s*)[^']*$)/,
},
};

Expand Down

0 comments on commit ea96627

Please sign in to comment.