From 9540d42e514bd1c17a9b6be993192f86bbf7744f Mon Sep 17 00:00:00 2001 From: Igor Zhukov Date: Sat, 21 Jun 2014 12:13:59 +0400 Subject: [PATCH] Fixed hash-tags Closes #337 --- 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 f4a25dc8..c6e4b0dc 100644 --- a/app/js/services.js +++ b/app/js/services.js @@ -2926,7 +2926,7 @@ angular.module('myApp.services', []) emojiMap[emojiData[emojiCode][0]] = emojiCode; } - var regExp = new RegExp('((?:(ftp|https?)://|(?:mailto:)?([A-Za-z0-9._%+-]+@))(\\S*\\.\\S*[^\\s.;,(){}<>"\']))|(\\n)|(' + emojiUtf.join('|') + ')|(^|\s)(#[A-Za-z0-9\_\.]{4,20})', 'i'); + var regExp = new RegExp('((?:(ftp|https?)://|(?:mailto:)?([A-Za-z0-9._%+-]+@))(\\S*\\.\\S*[^\\s.;,(){}<>"\']))|(\\n)|(' + emojiUtf.join('|') + ')|(^|\\s)(#[A-Za-z0-9\_\.]{4,20})', 'i'); var youtubeRegex = /(?:https?:\/\/)?(?:www\.)?youtu(?:|.be|be.com|.b)(?:\/v\/|\/watch\\?v=|e\/|\/watch(?:.+)v=)(.{11})(?:\&[^\s]*)?/; return {