expand-object icon indicating copy to clipboard operation
expand-object copied to clipboard

fails for commas in regex (and such things)

Open tunnckoCore opened this issue 9 years ago • 2 comments

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.

tunnckoCore avatar Sep 14 '16 00:09 tunnckoCore

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

jonschlinkert avatar Sep 14 '16 13:09 jonschlinkert

I think support for regex was removed.

it's possible, i didn't review the code

tunnckoCore avatar Sep 14 '16 13:09 tunnckoCore