Sha256: 5276dd4c55607dc7f22c417228220838d56b1c3601f05c8726e3a34cf1ba2688

Contents?: true

Size: 197 Bytes

Versions: 1

Compression:

Stored size: 197 Bytes

Contents

module Permalink
  module Normalizations
    module MultipleDashes
      def self.call(input, options = DEFAULT_OPTIONS)
        input.gsub(/-+/sm, 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/multiple_dashes.rb