Merge pull request #1218 from jtracey/urlRegexpFix

add [] to the ignored end characters in url regex
This commit is contained in:
Lorenz Hübschle-Schneider 2022-05-10 11:01:11 +02:00 committed by GitHub
commit 116d3bd4bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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
*