Created
February 11, 2012 12:39
-
-
Save siyo/1799237 to your computer and use it in GitHub Desktop.
(笑)を(笑ってない)に置き換えるやつ / earthquake.gem plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
Earthquake.init do | |
output_filter do |item| | |
next if item.nil? || item["text"].nil? | |
item["text"].gsub!(/(\(|(|)笑(\)|))/,"(笑ってない)") | |
true | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment