module InciScore::Normalizer::Rules::Sanitizer

Constants

INVALID_CHARS

Public Instance Methods

call(src) click to toggle source
# File lib/inci_score/normalizer_rules.rb, line 73
def call(src)
  Array(src).map do |token|
    token.gsub(INVALID_CHARS, '')
  end.reject(&:empty?)
end