Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix performance boost regexp
  • Loading branch information
enykeev authored Sep 12, 2017
commit 692917fd927e81bc005fec6289d9868c12e8c905
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down