Closed atnbueno closed 6 years ago
@atnbueno Thanks for reporting this issue. I noticed that you second rule has a typo, it doesn't include a colon :
after Link
, that's why the equal sign is missplaced. However, the double quotation is a real issue. I've opened #31 that fixes this problem.
- Do you want to request a feature or report a bug?
Bug 🐛
- What is the current behavior?
When I try to test a header that contains the ":" character, it is replaced by " = ", even when it is what goes after an URI scheme and it is between quotes that should protect it 😢
- If the current behavior is a bug, please provide the steps to reproduce.
Test these headers:
They are considered valid and equivalent to this TOML output:
Notice the first ":" replacement is correct, but not the second one 😢 Also the original quotes are ignored and end up doubled.
- What is the expected behavior?
The second ":", the one in "http://", should be left intact. Existing quotes should be detected and not be considered normal characters to be (re-)quoted.
- Please mention your Elm, node.js, and operating system version.
🤷 Firefox + Windows 10