Closed ckoster22 closed 7 years ago
Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!
Here is what to expect next, and if anyone wants to comment, keep these things in mind.
Thanks for the report! A new version of this library is coming out with 0.18 (in the next week or so) and I recall fixing this issue in particular. So I think it makes sense to try to reproduce this with the 0.18 beta from elm-dev. If it can be reproduced, please open a new issue and we can fix the bug before the final release!
The parse function docs show this example:
It's implied that code produces an OK result. I've put together an SSCCE with the same example code that says otherwise using Elm v0.17.1.
The code compiles fine but the parser produces an error that I display in the console.
Result: Err "Wanted /blog but got //blog/42/cat-herding-techniques"
Note the extra slash. This error is fixed by changing this line:
to this