Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

be less specific with citation regexp

  • Loading branch information...
commit fd7d1a7c6e2d58c2e39bb5ae1df3b118d14205c3 1 parent ef99680
Andrew Carpenter authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 config/routes/public.rb
View
4 config/routes/public.rb
@@ -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 }
Please sign in to comment.
Something went wrong with that request. Please try again.