Sha256: 785fc8be85ecec6394948f030ccfc5267d451165493e42bdb56a31e9a0faf0bb
Contents?: true
Size: 250 Bytes
Versions: 1
Compression:
Stored size: 250 Bytes
Contents
module Permalink module Normalizations module NonAlphanumeric def self.call(input, options = DEFAULT_OPTIONS) regex = /[^#{options[:separator]}a-z0-9]/sim input.gsub(regex, options[:separator]) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
permalink-2.0.0 | lib/permalink/normalizations/non_alphanumeric.rb |