Improving urlRexexp for plugins
This commit is contained in:
parent
e3842f9268
commit
7753922137
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ var Plugin = function(name, contentForMessage) {
|
|||
|
||||
|
||||
// Regular expression that detects URLs for UrlPlugin
|
||||
var urlRegexp = /(?:ftp|https?):\/\/\S*[^\s.;,(){}<>]/g;
|
||||
var urlRegexp = /(?:(?:https?|ftp):\/\/|www\.|ftp\.)\S*[^\s.;,(){}<>]/g;
|
||||
/*
|
||||
* Definition of a user provided plugin that consumes URLs
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue