Skip to content

Commit 4c3e97c

Browse files
committed
Make PurgeCSS regex compatible with node 8
1 parent ec0b7a2 commit 4c3e97c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/purgeUnusedUtilities.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export default function purgeUnusedUtilities(config) {
5050
},
5151
purgecss({
5252
content: Array.isArray(config.purge) ? config.purge : config.purge.paths,
53-
defaultExtractor: content => content.match(/[^<>"'`\s]+(?<![:=])/g) || [],
53+
defaultExtractor: content => content.match(/[^<>"'`\s]*[^<>"'`\s:]/g) || [],
5454
}),
5555
])
5656
}

0 commit comments

Comments
 (0)