Skip to content

Commit f5c2399

Browse files
committed
convert option to number if not '*'
1 parent ff334b6 commit f5c2399

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lib/parse-options.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,11 @@ module.exports = function(options) {
1717
options.keepSpecialComments = 1;
1818
break;
1919
case "keepSpecialComments":
20-
options.keepSpecialComments = argSplit[1];
20+
var specialCommentOption = argSplit[1];
21+
if (specialCommentOption !== "*") {
22+
specialCommentOption = Number(specialCommentOption);
23+
}
24+
options.keepSpecialComments = specialCommentOption;
2125
break;
2226
// for compatibility - does nothing
2327
case "skip-advanced":

0 commit comments

Comments
 (0)