Skip to content

Commit

Permalink
Fixing emoticon regex
Browse files Browse the repository at this point in the history
  • Loading branch information
sgrove committed Apr 12, 2012
1 parent 6915765 commit 3584aba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/assets/javascripts/backbone/plugins/emoticons.js.coffee
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class Kandan.Plugins.Emoticons

@options:
regex: /\([a-zA-Z])/g
regex: /\([a-zA-Z]\)/g
template: _.template '''
<img class="emoticon-embed" src="/assets/<%= emoticon %>" height="20" width="20" />
'''
Expand All @@ -21,4 +21,4 @@ class Kandan.Plugins.Emoticons
message.content.replace(search, replacement) if emoticon
return Kandan.Helpers.Activities.build_from_base_template(message)

# Kandan.Plugins.register "Kandan.Plugins.MeAnnounce"
# Kandan.Plugins.register "Kandan.Plugins.Emoticons"

0 comments on commit 3584aba

Please sign in to comment.