From 39974b0982a920913a2f61a28df6037f47d63eca Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sat, 23 Feb 2013 20:30:14 -0800 Subject: [PATCH] Make `optionsToArray` remove falsey values. Former-commit-id: 5c82f8ab92f67bd35030320fae06811dbb8f442b --- build.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.js b/build.js index 59f794aa0..c556e3afb 100755 --- a/build.js +++ b/build.js @@ -863,7 +863,7 @@ * @returns {Array} Returns the new converted array. */ function optionToArray(value) { - return value.match(/\w+=(.*)$/)[1].split(/, */); + return _.compact(value.match(/\w+=(.*)$/)[1].split(/, */)); } /**