From dcf985b3afc9cd6a23cdb5a76a263c2c48f80e8d Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Fri, 13 Feb 2015 12:46:54 +0300 Subject: [PATCH] Fixed URL regexp Closes #690 --- app/js/services.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/js/services.js b/app/js/services.js index 378ae342..8d3489eb 100755 --- a/app/js/services.js +++ b/app/js/services.js @@ -3552,7 +3552,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) // port number "(?::\\d{2,5})?" + // resource path - "(?:/[^\\s\\.\"\']*)?"; + "(?:/(?:\\S*[^\s.;,(){}<>\"'])?)?"; var regExp = new RegExp('(^|\\s)((?:https?://)?telegram\\.me/|@)([a-zA-Z\\d_]{5,32})|(' + urlRegex + ')|(\\n)|(' + emojiUtf.join('|') + ')|(^|\\s)(#[' + regexAlphaNumericChars + ']{2,20})', 'i');