pmlopes / yoke

Yoke is a middleware framework for Vert.x
http://pmlopes.github.io/yoke/
Apache License 2.0
157 stars 44 forks source link

Can't match an url in Router #130

Closed camathieu closed 10 years ago

camathieu commented 10 years ago
router.get(Pattern.compile("^/url/.*"), ...
router.get("/url/:url", ...

Neither of them match on http://127.0.0.1/url/http://foo.bar or anything with ://

pmlopes commented 10 years ago

the regex should work as in the test cases i added, the param will not for the reason that params are matches using a identifier regular expression:

([A-Za-z][A-Za-z0-9_]*)