From 41a7bbe10b2874232036e2a3c82df55569adc649 Mon Sep 17 00:00:00 2001 From: XuPeng Date: Tue, 31 May 2016 21:30:21 +0800 Subject: [PATCH] [fix]work with UglifyJS --- index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 8bb8019..130d719 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,8 @@ -var REGEX = //g; +var REGEX = //g; module.exports = function(content) { this.cacheable && this.cacheable(); - return content.replace(REGEX, function(m, p) { return p }); + return content.replace(REGEX, function(m, p) { + return `"+${p}+"` + }); }