Skip to content

Instantly share code, notes, and snippets.

@siyo
Created February 11, 2012 12:39
Show Gist options
  • Save siyo/1799237 to your computer and use it in GitHub Desktop.
Save siyo/1799237 to your computer and use it in GitHub Desktop.
(笑)を(笑ってない)に置き換えるやつ / earthquake.gem plugin
# -*- 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