Skip to content

Instantly share code, notes, and snippets.

@siyo
Created October 16, 2011 00:28
Embed
What would you like to do?
多段非公式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