Skip to content

Commit ba13564

Browse files
authored
feat: use official regex and support tailwind ui (#79)
1 parent 923e255 commit ba13564

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Before diving into the individual attributes, here are the default settings of t
7171
extractors: [
7272
{
7373
extractor(content) {
74-
return content.match(/[A-z0-9-:\\/]+/g)
74+
return content.match(/[\w-.:/]+(?<!:)/g)
7575
},
7676
extensions: ['html', 'vue', 'js']
7777
}

lib/module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default function nuxtPurgeCss(moduleOptions) {
3333
extractors: [
3434
{
3535
extractor(content) {
36-
return content.match(/[A-z0-9-:\\/]+/g) || []
36+
return content.match(/[\w-.:/]+(?<!:)/g) || []
3737
},
3838
extensions: ['html', 'vue', 'js']
3939
}

0 commit comments

Comments
 (0)