diff --git a/app/workers/parse_vk_file_worker.rb b/app/workers/parse_vk_file_worker.rb index 7383b31..fdb927c 100644 --- a/app/workers/parse_vk_file_worker.rb +++ b/app/workers/parse_vk_file_worker.rb @@ -42,7 +42,7 @@ def vk_error?(file) start = file.read(50) file.rewind - return false unless start.start_with?('') + return false unless ['', ' '].any? { |s| start.start_with?(s) } doc = Nokogiri::HTML(file)