projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
635c909
)
Coerce features to string
author
Kevin Sawicki
<kevinsawicki@gmail.com>
Fri, 2 Dec 2016 01:35:26 +0000
(17:35 -0800)
committer
Kevin Sawicki
<kevinsawicki@gmail.com>
Fri, 2 Dec 2016 21:40:31 +0000
(13:40 -0800)
lib/common/parse-features-string.js
patch
|
blob
|
history
diff --git
a/lib/common/parse-features-string.js
b/lib/common/parse-features-string.js
index
a700617
..
d6682f6
100644
(file)
--- 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