Coerce features to string
authorKevin Sawicki <kevinsawicki@gmail.com>
Fri, 2 Dec 2016 01:35:26 +0000 (17:35 -0800)
committerKevin Sawicki <kevinsawicki@gmail.com>
Fri, 2 Dec 2016 21:40:31 +0000 (13:40 -0800)
lib/common/parse-features-string.js

index a700617..d6682f6 100644 (file)
@@ -2,6 +2,7 @@
 // - `features` input string
 // - `emit` function(key, value) - called for each parsed KV
 module.exports = function parseFeaturesString (features, emit) {
+  features = `${features}`
   // split the string by ','
   features.split(/,\s*/).forEach((feature) => {
     // expected form is either a key by itself or a key/value pair in the form of