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

Can't access the state with dollar sign in the name. #41

Closed germanp closed 5 years ago

germanp commented 5 years ago

I've found that when you try to use get() or sync() for a state like that:

{ status: { $in: [] }

It generates the path as ["status", "in"] without dollar sign.

davestewart commented 5 years ago

This probably just needs a tweak to the regexps. I'll see what I can do in the next few days.

davestewart commented 5 years ago

Oh! You've done it, sorry, was reading this on my mobile 😁

davestewart commented 5 years ago

Released! https://twitter.com/dave_stewart/status/1105075672135933952