johanhelsing / bevy_pkv

Cross-platform (including wasm) persistent key value store plugin for rust games/apps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

set_string on WASM splits the value on dots

idanarye opened this issue · comments

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)

Oops. Look like I forgot to json encode the string. Fixed it and added some basic tests.

Thanks for reporting!