LeopoldArkham / Molten

[WIP] Molten - Style-preserving TOML parser.
Apache License 2.0
40 stars 8 forks source link

Normalize table names before comparing them #23

Closed LeopoldArkham closed 6 years ago

LeopoldArkham commented 6 years ago

As per this paragraph in the spec, table names can include whitespace, which should be stripped before comparing them together.

These comparisons occur in 3(?) places:

The normalization is only for comparisons, the actual value must still include the raw name so it can be reproduced exactly.

LeopoldArkham commented 6 years ago

Fixed in WIP