Sha256: f2e819b2060b6a9c90420ce26057b5d886e045de6d56555457b5208cc37a7a56
Contents?: true
Size: 489 Bytes
Versions: 5
Compression:
Stored size: 489 Bytes
Contents
module Amakanize module Filters class TrailingSeriesNamePayloadDeletionFilter < BaseFilter PAYLOADS = %w( 通常版 (未分類) ) # @note Override # @param output [String] e.g. `"魔法使いの嫁 通常版"` # @return [Hash] e.g. `"魔法使いの嫁"` def call(context:, output:) { context: context, output: output.gsub(/\s+#{::Regexp.union(PAYLOADS)}\z/, ""), } end end end end
Version data entries
5 entries across 5 versions & 1 rubygems