Closed kamsar closed 2 years ago
This can also be reproduced with other single-character property names such as 'x' that are not numbers so it may just be a bug not related to number parsing at all.
verified in branch bug/issue-48
running examples/issues/issue-48.js illustrates... thanks for the working code to reproduce!
I'll fix it there.
Fixed in v3.1.0
It appears that 'e' in a pointer path is interpreted as a number, which seems wrong since JS does not generally treat 'e' as a constant number and exponential notation requires a preceding digit ('1e7'). Adding an extra non-numeric character to the path, i.e. '/hi/eX', makes it behave as expected.
Run it here: https://stackblitz.com/edit/node-a9wd7r?file=index.js