Sha256: 484b6e917e5abf0e5f005e7f8a565db5957f615bea5a61e11c8738136fcdc715
Contents?: true
Size: 228 Bytes
Versions: 2
Compression:
Stored size: 228 Bytes
Contents
# frozen_string_literal: true 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
permalink-3.0.0 | lib/permalink/normalizations/multiple_dashes.rb |
permalink-2.1.0 | lib/permalink/normalizations/multiple_dashes.rb |