Permalink
Browse files

fixed url parsing to ignore dots in path parameters (rfc conform)

  • Loading branch information...
1 parent 674e58d commit affbad08765a7debe4f034ba4e20e2185fd89637 @TobiasBales TobiasBales committed Sep 21, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/clout/core.clj
View
@@ -121,7 +121,7 @@
word #":([\p{L}_][\p{L}_0-9-]*)"
literal #"(:[^\p{L}_*]|[^:*])+"
word-group #(keyword (.group % 1))
- word-regex #(regexs (word-group %) "[^/.,;?]+")]
+ word-regex #(regexs (word-group %) "[^/,;?]+")]
(CompiledRoute.
(re-pattern
(apply str
@@ -140,3 +140,4 @@
Route
(route-matches [route request]
(route-matches (route-compile route) request)))
+

0 comments on commit affbad0

Please sign in to comment.