expand-object
expand-object copied to clipboard
fails for commas in regex (and such things)
for example
var expandObject = require('expand-object')
var res = expandObject('a.b.c:/^so,b/gmi')
console.log(res.a)
// => { b: { c: [ '/^so', 'b/gmi' ] } }
it make sense to work for regexes at least?
pro tip: ;d snapdragon again.
We all are busy, but it cost nothing to have it as issue for remainder or for someone that wanna try snapdragon and come with PR.
I think support for regex was removed. But we can revisit if/when a better parser is implemented.
edit: I guess the readme needs to be updated too
I think support for regex was removed.
it's possible, i didn't review the code