From 692917fd927e81bc005fec6289d9868c12e8c905 Mon Sep 17 00:00:00 2001 From: Kirill Enykeev Date: Tue, 12 Sep 2017 18:53:42 +0700 Subject: [PATCH] Fix performance boost regexp --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index c5e6154..cc3ae1e 100644 --- a/index.js +++ b/index.js @@ -32,7 +32,7 @@ function cssExtract (bundle, opts) { function write (chunk, enc, cb) { // Performance boost: don't do ast parsing unless we know it's needed - if (!/[insert\-css|sheetify\/insert]/.test(chunk.source)) { + if (!/(insert\-css|sheetify\/insert)/.test(chunk.source)) { return cb(null, chunk) }