git-svn-id: http://svn.redmine.org/redmine/trunk@21353 e93f8b46-1217-0410-a6f0-8f06a7374b81tags/5.0.0
@@ -70,7 +70,7 @@ class Import < ActiveRecord::Base | |||
begin | |||
content = File.read(filepath, 256) | |||
separator = [',', ';'].sort_by {|sep| content.count(sep)}.last | |||
separator = [',', ';'].max_by {|sep| content.count(sep)} | |||
guessed_encoding = Redmine::CodesetUtil.guess_encoding(file_content) | |||
encoding = |