services/importer/lib/importer/string_sanitizer.rb
Method normalize
has 115 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def normalize(string, transliterate_cyrillic: false)
return '' if string.nil? || string.empty?
n = string.force_encoding("UTF-8")
n.gsub!(/[àáâãäåāă]/, 'a')