diff options
author | Xavier Noria <fxn@hashref.com> | 2011-08-18 02:59:02 -0700 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2011-08-18 03:09:18 -0700 |
commit | cc90adfd2a171c5fc9f90f6a6506c5ac937efab3 (patch) | |
tree | fc016bcdad89a6a358375d8db86e296c374a53bf /actionpack/lib/action_dispatch/routing/mapper.rb | |
parent | 12c0ea954ae1245013902c485d5d3e794381e3df (diff) | |
download | rails-cc90adfd2a171c5fc9f90f6a6506c5ac937efab3.tar.gz rails-cc90adfd2a171c5fc9f90f6a6506c5ac937efab3.tar.bz2 rails-cc90adfd2a171c5fc9f90f6a6506c5ac937efab3.zip |
minor details revised in a gsub
Regexps have a construct to express alternation of characters, which
is character classes. In addition to being the most specific idiom to
write this pattern, it reads better without the backslashes. Also, it
is better not to use a capture if none is needed. As a side-effect of
these changes, the gsub is marginally faster, but speed is not the
point of this commit.
Diffstat (limited to 'actionpack/lib/action_dispatch/routing/mapper.rb')
0 files changed, 0 insertions, 0 deletions