Skip to content
Browse files

Now prefixing query keyword to every parameter rather than just the f…

…irst. Either I misread or the Bing docs are incorrect...
  • Loading branch information...
1 parent 49ba08c commit 1e9a748f08da1f17708ad916f7d95b8e58a87c7d @mikedemers mikedemers committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/rbing.rb
View
4 lib/rbing.rb
@@ -132,8 +132,8 @@ def build_query(query, options={})
QUERY_KEYWORDS.each do |kw|
next unless options[kw]
if options[kw].is_a? Array
- kw_query = options[kw].map {|s| "#{s}".strip }.join(" OR ")
- queries << " (#{kw}:#{kw_query})"
+ kw_query = options[kw].map {|s| "#{kw}:#{s}".strip }.join(" OR ")
+ queries << " (#{kw_query})"
else
queries << " #{kw}:#{options[kw]}"
end

0 comments on commit 1e9a748

Please sign in to comment.
Something went wrong with that request. Please try again.