Skip to content

Commit

Permalink
Attempted to fix Shorl#on_body
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Mar 6, 2013
1 parent 2980959 commit 06442c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/shorturl/services/shorl.rb
Expand Up @@ -11,7 +11,7 @@ def initialize
end

def on_body(body)
URI.extract(body)[2]
URI.extract(body).grep(/http:\/\/shorl\.com\//)[0]
end

end
Expand Down

0 comments on commit 06442c0

Please sign in to comment.