Skip to content

Commit 7c6e98d

Browse files
authored
Merge pull request tailwindlabs#320 from SjorsO/patch-1
fix bug in purgecss extractor
2 parents 1bf1b0a + c5d6dbf commit 7c6e98d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/docs/controlling-file-size.blade.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ let PurgecssPlugin = require("purgecss-webpack-plugin");
165165
// https://github.com/FullHuman/purgecss#extractor
166166
class TailwindExtractor {
167167
static extract(content) {
168-
return content.match(/[A-z0-9-:\/]+/g);
168+
return content.match(/[A-z0-9-:\/]+/g) || [];
169169
}
170170
}
171171

0 commit comments

Comments
 (0)