aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/text_helper.rb
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2010-08-31 04:58:54 +0900
committerSantiago Pastorino <santiago@wyeworks.com>2011-02-01 14:04:42 -0200
commitcb9fa5283239e649483ea31ca372e99aaac2ca07 (patch)
treee2e3c267c16b0a81ad4e8d7f1d2df938e3711e91 /actionpack/lib/action_view/helpers/text_helper.rb
parent8a85f64abffde29ddfd521d63d566f98796ae400 (diff)
downloadrails-cb9fa5283239e649483ea31ca372e99aaac2ca07.tar.gz
rails-cb9fa5283239e649483ea31ca372e99aaac2ca07.tar.bz2
rails-cb9fa5283239e649483ea31ca372e99aaac2ca07.zip
auto_link: avoid recognizing full width chars as a part of URI scheme
fixes regression by http://github.com/rails/rails/commit/133ada6ab0f0cb7bef2bd40dbc18f2d5bc6b964e [#5503 state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'actionpack/lib/action_view/helpers/text_helper.rb')
-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 3d276000a1..4f7f5c454f 100644
--- a/actionpack/lib/action_view/helpers/text_helper.rb
+++ b/actionpack/lib/action_view/helpers/text_helper.rb
@@ -459,7 +459,7 @@ module ActionView
end
AUTO_LINK_RE = %r{
- (?: ([\w+.:-]+:)// | www\. )
+ (?: ([0-9A-Za-z+.:-]+:)// | www\. )
[^\s<]+
}x