p0358 / vdf-parser

Possibly the most complete JavaScript parser of Valve's VDF (KeyValues) file format
MIT License
28 stars 8 forks source link

Case sensitivity #8

Open mastercoms opened 4 months ago

mastercoms commented 4 months ago

Hi, wonderful library! I've noticed that for the reference VDF implementation, keys are case-insensitive. However, keys in this library are case-sensitive. Could a parse option be added to make options case insensitive? Perhaps by just adding toLowerCase for all keys. This would suffice for my usage, at least.

joekiller commented 3 months ago

I agree this would be helpful. For reference, you can see that valve utilizes a tolower function