From 26d0e47ce4ad1d26b07959bb4a39203301f35e4e Mon Sep 17 00:00:00 2001
From: Aleks Bunin <b@enlnt.com>
Date: Tue, 30 Apr 2013 09:29:43 -0400
Subject: [PATCH] Show emoji popup if : preceeding by space or is new line.

---
 app/assets/javascripts/gfm_auto_complete.js.coffee | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/assets/javascripts/gfm_auto_complete.js.coffee b/app/assets/javascripts/gfm_auto_complete.js.coffee
index 1cc9d34dd..9ef194fbd 100644
--- a/app/assets/javascripts/gfm_auto_complete.js.coffee
+++ b/app/assets/javascripts/gfm_auto_complete.js.coffee
@@ -20,7 +20,7 @@ GitLab.GfmAutoComplete =
     input = $('.js-gfm-input')
 
     # Emoji
-    input.atWho ':',
+    input.atWho '(?:^|\\s):',
       data: @Emoji.data
       tpl: @Emoji.template
 
-- 
2.30.9