Browse Source

Reverts r19489 (#32934).

git-svn-id: http://svn.redmine.org/redmine/trunk@19671 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.2.0
Jean-Philippe Lang 4 years ago
parent
commit
d257990868
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      lib/redmine/wiki_formatting/textile/redcloth3.rb

+ 2
- 2
lib/redmine/wiki_formatting/textile/redcloth3.rb View File

@@ -350,7 +350,7 @@ class RedCloth3 < String
PUNCT = Regexp::quote( '!"#$%&\'*+,-./:;=?@\\^_`|~' )
PUNCT_NOQ = Regexp::quote( '!"#$&\',./:;=?@\\`|' )
PUNCT_Q = Regexp::quote( '*-_+^~%' )
HYPERLINK = '(?=\/|https?:\/\/|s?ftps?:\/\/|www\.|mailto:)(\S+?)([^\w\s/;=\?]*?)(?=\s|<|$)'
HYPERLINK = '(\S+?)([^\w\s/;=\?]*?)(?=\s|<|$)'

# Text markup tags, don't conflict with block tags
SIMPLE_HTML_TAGS = [
@@ -815,7 +815,7 @@ class RedCloth3 < String
(?:\(([^)]+?)\)(?="))? # $title
":
( # $url
(\/|https?:\/\/|s?ftps?:\/\/|www\.|mailto:) # $proto
(\/|[a-zA-Z]+:\/\/|www\.|mailto:) # $proto
[[:alnum:]_\/]\S+?
)
(\/)? # $slash

Loading…
Cancel
Save