set_string on WASM splits the value on dots
idanarye opened this issue · comments
Idan Arye commented
On WASM, when I use pkv.set_string
to store a string with a dot (.
) in it (in the value, not in the key), it splits on the dot and stores an array instead. Needless to say, trying to load that value fails because the type is wrong.
This only happens with set_string
- using set
stores the value correctly.
This only happens on WASM - on native set_string
works properly.
I'm using the version from the latest commit (02c18d1)
Johan Klokkhammer Helsing commented
Oops. Look like I forgot to json encode the string. Fixed it and added some basic tests.
Thanks for reporting!