crossroads.js
crossroads.js copied to clipboard
":" creates a wrong regexp
For the route "'xy:{x},{y}'" creates: "/^/?xy:/([^/?]+),([^/?]+)/?$/i" instead of "/^/?xy:([^/?]+),([^/?]+)/?$/i"
Test here: http://www.regexr.com/ the string "xy:34234,-2342"
Or maybe the ":" is used for the variables. But please let me use it anyway, even escaping it somehow.
I made the wrong assumption that :
was always the end of an optional argument and always going to need /
in between 2 arguments.
see: https://github.com/millermedeiros/crossroads.js/blob/9e6e24c7c42b85c5e7143c8c881464fa8d1d64d1/dev/src/pattern_lexer.js#L28-L34