Skip to content

Instantly share code, notes, and snippets.

@siyo
Created October 16, 2011 00:28
Show Gist options
  • Save siyo/1290359 to your computer and use it in GitHub Desktop.
Save siyo/1290359 to your computer and use it in GitHub Desktop.
多段非公式RTフィルタ earthquake.gem plugin
# -*- coding: utf-8 -*-
Earthquake.init do
output_filter do |item|
next if item.nil? || item["text"].nil?
!(/^.+[¥"QR]T(?:[:\s]*@[A-Za-z0-9_]|\(via[:\s]*@[A-Za-z0-9_]).+[¥"QR]T/ =~ item["text"])
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment