From 585a1821459300c484b3c59859f935734201878f Mon Sep 17 00:00:00 2001 From: JC Brand Date: Mon, 29 Jan 2018 15:35:36 +0100 Subject: [PATCH] Bugfix in the URL regex --- src/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.js b/src/utils.js index 3ee658780..1a8b4f2a4 100644 --- a/src/utils.js +++ b/src/utils.js @@ -24,7 +24,7 @@ const b64_sha1 = Strophe.SHA1.b64_sha1; Strophe = Strophe.Strophe; - const URL_REGEX = /\b(https?:\/\/|www\.|https?:\/\/www\.)[^\s<>]{2,200}\b[/]/g; + const URL_REGEX = /\b(https?:\/\/|www\.|https?:\/\/www\.)[^\s<>]{2,200}\b\/?/g; const logger = _.assign({ 'debug': _.get(console, 'log') ? console.log.bind(console) : _.noop,