From 60653666f2504ae7979880e4fcdd90f28facdc3c Mon Sep 17 00:00:00 2001 From: Ruben Rodriguez Date: Fri, 11 May 2018 13:38:24 -0400 Subject: Generalize comment styles for @license matching --- pattern_utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pattern_utils.js b/pattern_utils.js index b3e84d6..ce20842 100644 --- a/pattern_utils.js +++ b/pattern_utils.js @@ -33,7 +33,7 @@ exports.patternUtils = { return str.replace(regex, ''); }, removeWhitespace: function (str) { - return str.replace(/\s+/gmi, ''); + return str.replace(/\/\//gmi, '').replace(/\*/gmi, '').replace(/\s+/gmi, ''); }, replaceTokens: function (str) { var regex = /<.*?>/gi; -- cgit v1.2.3