add [] to the ignored end characters in url regex

This commit is contained in:
Justin Tracey 2022-05-07 21:10:37 -04:00
parent 10ee209e85
commit 597ed1aeb9

View File

@ -24,7 +24,7 @@ var Plugin = function(name, contentForMessage) {
// Regular expression that detects URLs for UrlPlugin
var urlRegexp = /(?:(?:https?|ftp):\/\/|www\.|ftp\.)\S*[^\s.;,(){}<>]/g;
var urlRegexp = /(?:(?:https?|ftp):\/\/|www\.|ftp\.)\S*[^\s.;,(){}<>[\]]/g;
/*
* Definition of a user provided plugin that consumes URLs
*