aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2008-07-19 00:46:02 -0500
committerJoshua Peek <josh@joshpeek.com>2008-07-19 00:46:02 -0500
commitcab168ac9bbe24e5842fb7677d3fac820ddbc18c (patch)
treeb77b9dcede0d25ad19c33e5a0d1a3b5360e2170b /actionpack/lib
parent108ed4a5660d4ebdc52563250463c762e3f27988 (diff)
downloadrails-cab168ac9bbe24e5842fb7677d3fac820ddbc18c.tar.gz
rails-cab168ac9bbe24e5842fb7677d3fac820ddbc18c.tar.bz2
rails-cab168ac9bbe24e5842fb7677d3fac820ddbc18c.zip
Ruby 1.9: Fixed regexp warning by replacing nested repeat operator + and ? with '*'
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_view/helpers/text_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/text_helper.rb b/actionpack/lib/action_view/helpers/text_helper.rb
index 3e3452b615..9342b38680 100644
--- a/actionpack/lib/action_view/helpers/text_helper.rb
+++ b/actionpack/lib/action_view/helpers/text_helper.rb
@@ -468,7 +468,7 @@ module ActionView
[-\w]+ # subdomain or domain
(?:\.[-\w]+)* # remaining subdomains or domain
(?::\d+)? # port
- (?:/(?:(?:[~\w\+@%=\(\)-]|(?:[,.;:'][^\s$]))+)?)* # path
+ (?:/(?:(?:[~\w\+@%=\(\)-]|(?:[,.;:'][^\s$])))*)* # path
(?:\?[\w\+@%&=.;-]+)? # query string
(?:\#[\w\-]*)? # trailing anchor
)