From d1fc119e2d3a13c54876e994780ba01c6552d9ec Mon Sep 17 00:00:00 2001 From: Eric Allen Date: Tue, 8 Dec 2009 12:53:06 -0500 Subject: [PATCH] We no longer need this fix In fact, it breaks things now All tests passing. --- config/initializers/core_ext.rb | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 config/initializers/core_ext.rb diff --git a/config/initializers/core_ext.rb b/config/initializers/core_ext.rb deleted file mode 100644 index 507a0cf3..00000000 --- a/config/initializers/core_ext.rb +++ /dev/null @@ -1,25 +0,0 @@ -# See test_url_with_slash_in_query_string_are_parsed_correctly in test/functional/todos_controller_test.rb -# and http://blog.swivel.com/code/2009/06/rails-auto_link-and-certain-query-strings.html -module ActionView::Helpers::TextHelper - remove_const :AUTO_LINK_RE - AUTO_LINK_RE = %r{ - ( # leading text - <\w+.*?>| # leading HTML tag, or - [^=!:'"/]| # leading punctuation, or - ^ # beginning of line - ) - ( - (?:https?://)| # protocol spec, or - (?:www\.) # www.* - ) - ( - [-\w]+ # subdomain or domain - (?:\.[-\w]+)* # remaining subdomains or domain - (?::\d+)? # port - (?:/(?:[~\w\+@%=\(\)-]|(?:[,.;:'][^\s$]))*)* # path - (?:\?[\w\+@%&=.;:/-]+)? # query string - (?:\#[\w\-]*)? # trailing anchor - ) - ([[:punct:]]|<|$|) # trailing text - }x -end