Sha256: 90dd19f77b60b2024797db32684712624dcd11107828b0d64b89b7c40b191d17
Contents?: true
Size: 425 Bytes
Versions: 2
Compression:
Stored size: 425 Bytes
Contents
module Amakanize module Filters class HyphenMinusNormalizationFilter < BaseFilter # @note Override # @note Replace U+2010 (hyphen) with U+002D (hyphen/minus) # @param output [String] e.g. `"D.Gray‐man"` # @return [Hash] e.g. `"D.Gray-man"` def call(context:, output:) { context: context, output: output.gsub("‐", "-"), } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
amakanize-0.5.1 | lib/amakanize/filters/hyphen_minus_normalization_filter.rb |
amakanize-0.5.0 | lib/amakanize/filters/hyphen_minus_normalization_filter.rb |