Fixed that autolinks and textile links ending with cyrilic characters are broken (#12397).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10879 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang committed 2012-11-24 14:20:01 +00:00
1 parent b94c971755
commit fb9a2901e9
3 files changed
+25 -3

No files matched your search

+2 -2
View File
@@ -816,10 +816,10 @@ class RedCloth3 < String
":
( # $url
(\/|[a-zA-Z]+:\/\/|www\.|mailto:) # $proto
[\w\/]\S+?
[[:alnum:]_\/]\S+?
)
(\/)? # $slash
([^\w\=\/;\(\)]*?) # $post
([^[:alnum:]_\=\/;\(\)]*?) # $post
)
(?=<|\s|$)
/x
+1 -1
View File
@@ -98,7 +98,7 @@ module Redmine
(\S+?) # url
(\/)? # slash
)
((?:&gt;)?|[^\w\=\/;\(\)]*?) # post
((?:&gt;)?|[^[:alnum:]_\=\/;\(\)]*?) # post
(?=<|\s|$)
}x unless const_defined?(:AUTO_LINK_RE)