OSDN Git Service

Show emoji popup if : preceeding by space or is new line.
authorAleks Bunin <b@enlnt.com>
Tue, 30 Apr 2013 13:29:43 +0000 (09:29 -0400)
committerAleks Bunin <b@enlnt.com>
Tue, 30 Apr 2013 13:29:43 +0000 (09:29 -0400)
app/assets/javascripts/gfm_auto_complete.js.coffee

index 1cc9d34..9ef194f 100644 (file)
@@ -20,7 +20,7 @@ GitLab.GfmAutoComplete =
     input = $('.js-gfm-input')
 
     # Emoji
-    input.atWho ':',
+    input.atWho '(?:^|\\s):',
       data: @Emoji.data
       tpl: @Emoji.template