fix spaces in searches

This commit is contained in:
r888888888
2015-07-27 17:38:42 -07:00
parent f87c71cf23
commit fa123da0fb

View File

@@ -8,7 +8,7 @@ class PopularSearchService
end
def each_search(&block)
fetch_data.scan(/\S+/).in_groups_of(2).each(&block)
fetch_data.scan(/(.+?) (\d+)\.0\n/).each(&block)
end
def fetch_data