mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
FIX: Autolinking in email formatter was broken
This commit is contained in:
parent
c2b769bd95
commit
0c3b049176
2 changed files with 14 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
class EmailCook
|
||||
|
||||
def self.url_regexp
|
||||
/[^\>]*((?:https?:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.])(?:[^\s()<>]+|\([^\s()<>]+\))+(?:\([^\s()<>]+\)|[^`!()\[\]{};:'".,<>?«»\s]))/
|
||||
/^((?:https?:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.])(?:[^\s()<>]+|\([^\s()<>]+\))+(?:\([^\s()<>]+\)|[^`!()\[\]{};:'".,<>?«»“”‘’\s]))/
|
||||
end
|
||||
|
||||
def initialize(raw)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue