sm-moore / yaml-path

3 stars 4 forks source link

Slash in key confuses the path output #1

Open dvrensk opened 1 year ago

dvrensk commented 1 year ago

Thanks for a wonderful extension! Today I ran across a case that didn't work properly, and I just wanted to bring it to your attention. Not a big problem, but maybe you want to fix it anyway.

Given this YAML (note the /):

foo:
  bar/baz:
    name: value

I expect the path to value to be foo.bar/baz.name but it was foo.bar/baz:.name with an extra colon.

I have slashes in the keys because that's what my I18n framework expects.