diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/options-reader.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/options-reader.js b/lib/options-reader.js index 3765fd3..dc17fe8 100644 --- a/lib/options-reader.js +++ b/lib/options-reader.js @@ -75,11 +75,11 @@ function readCustomStyleMap(styleMap) { return []; } else if (_.isString(styleMap)) { return styleMap.split("\n") - .filter(function(line) { - return line.charAt(0) !== "#"; - }) .map(function(line) { return line.trim(); + }) + .filter(function(line) { + return line !== "" && line.charAt(0) !== "#"; }); } else { return styleMap; |
