From 691d358dd499a65152b3136b4d12d60442560836 Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Mon, 20 Jul 2015 00:09:10 +0300 Subject: [PATCH] Fixed NL after command Closes #854 --- 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 496a203d..ee38a91b 100755 --- a/app/js/services.js +++ b/app/js/services.js @@ -4594,7 +4594,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) "(?:/(?:\\S{0,255}[^\\s.;,(\\[\\]{}<>\"'])?)?"; var usernameRegExp = "[a-zA-Z\\d_]{5,32}"; - var botCommandRegExp = "\\/([a-zA-Z\\d_]{1,32})(?:@(" + usernameRegExp + "))?(\\s|$)" + var botCommandRegExp = "\\/([a-zA-Z\\d_]{1,32})(?:@(" + usernameRegExp + "))?(\\b|$)" var fullRegExp = new RegExp('(^| )(@)(' + usernameRegExp + ')|(' + urlRegExp + ')|(\\n)|(' + emojiRegExp + ')|(^|\\s)(#[' + alphaNumericRegExp + ']{2,64})|(^|\\s)' + botCommandRegExp, 'i');