From 8711993bf032ef0f9712cab075f8a7bd80e006e8 Mon Sep 17 00:00:00 2001 From: Refael Dakar Date: Mon, 2 Apr 2018 17:00:22 +0300 Subject: [PATCH] when website url is not what we expect - with 'q=' - we don't parse it --- lib/market_bot/play/app.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/market_bot/play/app.rb b/lib/market_bot/play/app.rb index 5271196..4ac6f8f 100644 --- a/lib/market_bot/play/app.rb +++ b/lib/market_bot/play/app.rb @@ -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