Browse Source

Fixed URL regexp

Closes #690
master
Igor Zhukov 10 years ago
parent
commit
dcf985b3af
  1. 2
      app/js/services.js

2
app/js/services.js

@ -3552,7 +3552,7 @@ angular.module('myApp.services', ['myApp.i18n', 'izhukov.utils'])
// port number // port number
"(?::\\d{2,5})?" + "(?::\\d{2,5})?" +
// resource path // 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'); var regExp = new RegExp('(^|\\s)((?:https?://)?telegram\\.me/|@)([a-zA-Z\\d_]{5,32})|(' + urlRegex + ')|(\\n)|(' + emojiUtf.join('|') + ')|(^|\\s)(#[' + regexAlphaNumericChars + ']{2,20})', 'i');

Loading…
Cancel
Save