summaryrefslogtreecommitdiffstats
path: root/lib/redcloth3.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-01-31 14:50:56 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-01-31 14:50:56 +0000
commit2ca4eea244428d0dbb11bb558d4e5bc241417b32 (patch)
tree0e3883422e77e0b33beb6b8b95b192fb13b6f4d9 /lib/redcloth3.rb
parentf021c856c19ab4a30a77de6a39239ee437712fa5 (diff)
downloadredmine-2ca4eea244428d0dbb11bb558d4e5bc241417b32.tar.gz
redmine-2ca4eea244428d0dbb11bb558d4e5bc241417b32.zip
Less strict textile links parsing (#2582).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2344 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redcloth3.rb')
-rw-r--r--lib/redcloth3.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redcloth3.rb b/lib/redcloth3.rb
index c138450a2..9e63bf5ac 100644
--- a/lib/redcloth3.rb
+++ b/lib/redcloth3.rb
@@ -792,7 +792,7 @@ class RedCloth3 < String
(?:\(([^)]+?)\)(?="))? # $title
":
( # $url
- (\/|https?:\/\/|s?ftps?:\/\/|www\.)
+ (\/|[a-zA-Z]+:\/\/|www\.) # $proto
[\w\/]\S+?
)
(\/)? # $slash