node-steam / vdf

Module to convert Valve's KeyValue format to JSON and back
https://node-steam.github.io/vdf/
MIT License
34 stars 3 forks source link

Values that should be strings but are composed of integers are parsed as numbers #15

Open cbartondock opened 2 years ago

cbartondock commented 2 years ago

Example is the game titled 140, which can occur in screenshots.vdf. Obviously this is a title and should be parsed as a string, but it currently isn't. From the output of genericParser.parse():

debug1

lenovouser commented 2 years ago

@cbartondock I can't think of a clean way that fixes this, since we currently just check if a value can be a number, and if it can be, we make it one. Please let me know if you have ideas on how to circumvent this.