From 3b99827540a8f6391aca8000f8aed1f78578f7f7 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 1 Dec 2016 17:35:26 -0800 Subject: [PATCH] Coerce features to string --- lib/common/parse-features-string.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/common/parse-features-string.js b/lib/common/parse-features-string.js index a700617..d6682f6 100644 --- a/lib/common/parse-features-string.js +++ b/lib/common/parse-features-string.js @@ -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 -- 2.7.4