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:
1 parent
b94c971755
commit
fb9a2901e9
3 files changed
+25
-3
No files matched your search
+2
-2
@@ -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
|
||||
|
||||
@@ -98,7 +98,7 @@ module Redmine
|
||||
(\S+?) # url
|
||||
(\/)? # slash
|
||||
)
|
||||
((?:>)?|[^\w\=\/;\(\)]*?) # post
|
||||
((?:>)?|[^[:alnum:]_\=\/;\(\)]*?) # post
|
||||
(?=<|\s|$)
|
||||
}x unless const_defined?(:AUTO_LINK_RE)
|
||||
|
||||
|
||||
Reference in new issue
Block a user