aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuben Rodriguez <ruben@fsf.org>2018-05-11 13:38:24 -0400
committerRuben Rodriguez <ruben@fsf.org>2018-05-11 13:38:24 -0400
commit60653666f2504ae7979880e4fcdd90f28facdc3c (patch)
treea90c565218b2401c8440a39b27e21fa7cccb9a80
parent37559e3cd93f58f23a7a3d3ec413fcbae22656e7 (diff)
Generalize comment styles for @license matching
-rw-r--r--pattern_utils.js2
1 files changed, 1 insertions, 1 deletions
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;