Support .-Symbol in IDs
Change-Id: I16d27493064ae1449360a382a1e49b21c542b09c
diff --git a/lib/Kalamar.pm b/lib/Kalamar.pm
index 5de4c22..b4fa1ba 100644
--- a/lib/Kalamar.pm
+++ b/lib/Kalamar.pm
@@ -387,9 +387,9 @@
# Match route
# Corpus route
my $corpus = $r->get('/corpus')->to('search#corpus_info')->name('corpus');
- my $doc = $r->any('/corpus/:corpus_id/:doc_id');
- my $text = $doc->get('/:text_id')->to('search#text_info')->name('text');
- my $match = $doc->get('/:text_id/:match_id')->to('search#match_info')->name('match');
+ my $doc = $r->any('/corpus/#corpus_id/#doc_id');
+ my $text = $doc->get('/#text_id')->to('search#text_info')->name('text');
+ my $match = $doc->get('/#text_id/#match_id')->to('search#match_info')->name('match');
};