Skip to content

Commit

Permalink
fix error in String#emojify on latest or month mode
Browse files Browse the repository at this point in the history
  • Loading branch information
tdtds committed Feb 18, 2015
1 parent 94542b5 commit 7c4da19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tdiary/core_ext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def make_link
end

def emojify
self.gsub(/:([a-zA-Z0-9_+-]+):/) do |match|
self.to_str.gsub(/:([a-zA-Z0-9_+-]+):/) do |match|
emoji_alias = $1.downcase
emoji_url = %Q[<img src='http://www.emoji-cheat-sheet.com/graphics/emojis/%s.png' width='20' height='20' title='%s' alt='%s' class='emoji' />]
if emoji_alias == 'plus1' or emoji_alias == '+1'
Expand Down

0 comments on commit 7c4da19

Please sign in to comment.