aboutsummaryrefslogtreecommitdiff
path: root/lib/options-reader.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-09-16 12:23:43 +0100
committerMichael Williamson <mike@zwobble.org>2016-09-16 12:24:23 +0100
commitd16d3a010c5386775f189b0309268ba1e45810fb (patch)
tree856fdef758ba5e963c3fa5470a25e2c9d4eb760d /lib/options-reader.js
parent206843c9f701a3e62ba7c45b07173471b6309870 (diff)
Ignore blank lines in style map
Diffstat (limited to 'lib/options-reader.js')
-rw-r--r--lib/options-reader.js6
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;