Permalink
Browse files

be less specific with citation regexp

  • Loading branch information...
1 parent ef99680 commit fd7d1a7c6e2d58c2e39bb5ae1df3b118d14205c3 Andrew Carpenter committed Jul 22, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 config/routes/public.rb
View
@@ -63,12 +63,12 @@
map.connect 'citation/:volume/:page', :controller => 'citations',
:action => 'show',
:conditions => { :method => :get },
- :volume => /\d{2}/,
+ :volume => /\d+/,
:page => /\d+/
map.citation 'citation/:fr_citation', :controller => 'citations',
:action => 'show',
:conditions => { :method => :get },
- :fr_citation => /\d{2}-FR-\d+/
+ :fr_citation => /\d+-FR-\d+/
map.citation_search 'citation/search', :controller => 'citations',
:action => 'search',
:conditions => { :method => :get }

0 comments on commit fd7d1a7

Please sign in to comment.