Improving urlRexexp for plugins

This commit is contained in:
Eternal 2016-01-20 16:50:09 +01:00 committed by Matricon
parent e3842f9268
commit 7753922137

View file

@ -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
*