Sha256: f7ecb91e1d64834d3f96a211613a14c01b1da388e8fc30ff072dfc7da2cf4155

Contents?: true

Size: 185 Bytes

Versions: 1

Compression:

Stored size: 185 Bytes

Contents

module Permalink
  module Normalizations
    module LeadingTrailingDashes
      def self.call(input, _options = nil)
        input.gsub(/^-?(.*?)-?$/, '\1')
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
permalink-2.0.0 lib/permalink/normalizations/leading_trailing_dashes.rb