mirror of
https://github.com/TracksApp/tracks.git
synced 2026-04-17 17:54:35 +02:00
We no longer need this fix
In fact, it breaks things now All tests passing.
This commit is contained in:
parent
3e177c7b81
commit
d1fc119e2d
1 changed files with 0 additions and 25 deletions
|
|
@ -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
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue