Skip to content

Commit

Permalink
fix: svelte pattern #141
Browse files Browse the repository at this point in the history
  • Loading branch information
voorjaar committed May 22, 2021
1 parent 166147b commit 48cb833
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 @@ -55,7 +55,7 @@ export const fileTypes: {[key:string]: {pattern?: RegExp, type: string}} = {
},
'svelte': {
type: 'html',
pattern: /class:\S*$/,
pattern: /(class:\S*$)|((class\s*=\s*["'`]?\s*{\s*)[^}]*$)/,
},
};

Expand Down

0 comments on commit 48cb833

Please sign in to comment.