Browse Source

Fixed NL after command

Closes #854
master
Igor Zhukov 9 years ago
parent
commit
691d358dd4
  1. 2
      app/js/services.js

2
app/js/services.js

@ -4594,7 +4594,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils']) @@ -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');

Loading…
Cancel
Save