We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32d83d6 commit cb173d5Copy full SHA for cb173d5
plugins/filter/google_news.rb
@@ -2,7 +2,7 @@
2
# Name:: Automatic::Plugin::Filter::GoogleNews
3
# Author:: 774 <http://id774.net>
4
# Created:: Oct 12, 2014
5
-# Updated:: Oct 12, 2014
+# Updated:: Oct 14, 2014
6
# Copyright:: Copyright (c) 2014 Automatic Ruby Developers.
7
# License:: Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0.
8
@@ -33,8 +33,8 @@ def run
33
private
34
35
def rewrite_link(feed)
36
- if feed.link.index("http://news.google.com")
37
- if feed.link.class == String
+ if feed.link.class == String
+ if feed.link.index("http://news.google.com")
38
matched = feed.link.match(/(&url=)/)
39
unless matched.nil?
40
new_link = matched.post_match
0 commit comments