Make optionsToArray remove falsey values.

Former-commit-id: 5c82f8ab92f67bd35030320fae06811dbb8f442b
This commit is contained in:
John-David Dalton
2013-02-23 20:30:14 -08:00
parent 323d7306e2
commit 39974b0982

View File

@@ -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(/, */));
}
/**