Skip to content
This repository has been archived by the owner on Nov 30, 2018. It is now read-only.

Commit

Permalink
when website url is not what we expect - with 'q=' - we don't parse it
Browse files Browse the repository at this point in the history
  • Loading branch information
refaelos authored and chadrem committed Apr 3, 2018
1 parent 7056a02 commit 8711993
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/market_bot/play/app.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def self.parse(html, opts = {})
href_q = URI(href).query
if href_q
q_param = href_q.split('&').select {|p| p =~ /q=/}.first
href = q_param.gsub('q=', '')
href = q_param.gsub('q=', '') if q_param
end
result[:website_url] = href
end
Expand Down

0 comments on commit 8711993

Please sign in to comment.