Skip to content

Instantly share code, notes, and snippets.

@zhhz
Created September 14, 2009 20:04
Show Gist options
  • Save zhhz/186894 to your computer and use it in GitHub Desktop.
Save zhhz/186894 to your computer and use it in GitHub Desktop.
# merb-core-1.0.9/lib/merb-core/dispatch/router/route.rb
- SEGMENT_REGEXP_WITH_BRACKETS = /(:[a-z_]+)(\[(\d+)\])?/
+ SEGMENT_REGEXP_WITH_BRACKETS = /(:[a-z0-9_]+)(\[(\d+)\])?/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment