Skip to content

Commit ce1a0ee

Browse files
committed
account for svelte class bindings at the start of a line
1 parent 8c1df0f commit ce1a0ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jit/lib/expandTailwindAtRules.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const INNER_MATCH_GLOBAL_REGEXP = /[^<>"'`\s.(){}[\]#=%]*[^<>"'`\s.(){}[\]#=%:]/
1515
function getDefaultExtractor(fileExtension) {
1616
return function (content) {
1717
if (fileExtension === 'svelte') {
18-
content = content.replace(/\sclass:/g, ' ')
18+
content = content.replace(/(?:^|\s)class:/g, ' ')
1919
}
2020
let broadMatches = content.match(BROAD_MATCH_GLOBAL_REGEXP) || []
2121
let innerMatches = content.match(INNER_MATCH_GLOBAL_REGEXP) || []

0 commit comments

Comments
 (0)