Skip to content

Commit c847c34

Browse files
fix: return empty array if extractor doesn't match
1 parent d62b6ae commit c847c34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default function nuxtPurgeCss() {
2828
{
2929
extractor: class {
3030
static extract(content) {
31-
return content.match(/[A-z0-9-:\\/]+/g)
31+
return content.match(/[A-z0-9-:\\/]+/g) || []
3232
}
3333
},
3434
extensions: ['html', 'vue', 'js']

0 commit comments

Comments
 (0)