Support for 3-letter hashtags
This commit is contained in:
parent
d9ffe5d324
commit
456dc84d4a
@ -3077,7 +3077,7 @@ angular.module('myApp.services', [])
|
||||
"\\uffa1-\\uffdc"; // half width Hangul (Korean)
|
||||
var regexAlphaNumericChars = "0-9\.\_" + regexAlphaChars;
|
||||
|
||||
var regExp = new RegExp('((?:(ftp|https?)://|(?:mailto:)?([A-Za-z0-9._%+-]+@))(\\S*\\.\\S*[^\\s.;,(){}<>"\']))|(\\n)|(' + emojiUtf.join('|') + ')|(^|\\s)(#[' + regexAlphaNumericChars + ']{4,20})', 'i');
|
||||
var regExp = new RegExp('((?:(ftp|https?)://|(?:mailto:)?([A-Za-z0-9._%+-]+@))(\\S*\\.\\S*[^\\s.;,(){}<>"\']))|(\\n)|(' + emojiUtf.join('|') + ')|(^|\\s)(#[' + regexAlphaNumericChars + ']{3,20})', 'i');
|
||||
var youtubeRegex = /(?:https?:\/\/)?(?:www\.)?youtu(?:|.be|be.com|.b)(?:\/v\/|\/watch\\?v=|e\/|\/watch(?:.+)v=)(.{11})(?:\&[^\s]*)?/;
|
||||
|
||||
return {
|
||||
|
Loading…
x
Reference in New Issue
Block a user