Skip to content

Use 'ObjectPath' package for dot (period) support #351

@A-312

Description

@A-312

I will make a PR to add ObjectPath package like dependencie. This dep looks reliable : https://github.com/mike-marcacci/objectpath/blob/master/test/index.js

Example :

> var ObjectPath = require('objectpath');
undefined
> ObjectPath.parse('a[1].b.c.d["e"]["f"].g');
[ 'a', '1', 'b', 'c', 'd', 'e', 'f', 'g' ]
> ObjectPath.parse('a[1].b.c.d["e"]["www.site.com"].g');
[ 'a', '1', 'b', 'c', 'd', 'e', 'www.site.com', 'g' ]
> ObjectPath.parse('a[1].b.c.d["e"]["www.site\\".com"].g');
[ 'a', '1', 'b', 'c', 'd', 'e', 'www.site".com', 'g' ]
> ObjectPath.parse('a[1].b.c.d[\'e\']["www.site\\".com"].g');
[ 'a', '1', 'b', 'c', 'd', 'e', 'www.site".com', 'g' ]
Similar
#250#271, PR #315

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions