Skip to content

Commit

Permalink
account for svelte class bindings at the start of a line
Browse files Browse the repository at this point in the history
  • Loading branch information
bradlc committed Apr 26, 2021
1 parent 8c1df0f commit ce1a0ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jit/lib/expandTailwindAtRules.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const INNER_MATCH_GLOBAL_REGEXP = /[^<>"'`\s.(){}[\]#=%]*[^<>"'`\s.(){}[\]#=%:]/
function getDefaultExtractor(fileExtension) {
return function (content) {
if (fileExtension === 'svelte') {
content = content.replace(/\sclass:/g, ' ')
content = content.replace(/(?:^|\s)class:/g, ' ')
}
let broadMatches = content.match(BROAD_MATCH_GLOBAL_REGEXP) || []
let innerMatches = content.match(INNER_MATCH_GLOBAL_REGEXP) || []
Expand Down

0 comments on commit ce1a0ee

Please sign in to comment.