mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Coerce features to string
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user