davestewart / vuex-pathify

Vue / Vuex plugin providing a unified path syntax to Vuex stores
https://davestewart.github.io/vuex-pathify
MIT License
1.37k stars 57 forks source link

Update isIndex logic to omit zero-leading integer strings #123

Closed liamtlr closed 3 years ago

liamtlr commented 3 years ago

This is my fairly rudimentary attempt to address #122

Omit zero-leading numeric strings from being considered indexes and therefore being parsed to integers.

Caveat that this is selfishly addressing the specific scenario occurring in my project, devoid of the wider code bases's context and ramifications it may have. Additionally, very likely a different approach/alternate solution here, if any action is warranted at all. Happily accept guidance to that end.

Thanks!

davestewart commented 3 years ago

Rejecting in favour of #124