Sha256: dab3aed5bd39b3d8288309e923498c1bbb1e29c93fc810744919cb307f9fbb82

Contents?: true

Size: 356 Bytes

Versions: 7

Compression:

Stored size: 356 Bytes

Contents

# frozen_string_literal: true

module Hanamimastery
  module CLI
    module Transformations
      class Unshot
        PATTERN = /\[🎬[[:space:]]\d{1,3}\][[:space:]]/

        # removes shot marks [🎬 01] from the given string
        #
        def call(content, one: false)
          content.gsub(PATTERN, '')
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hanamimastery-cli-0.4.0 lib/hanamimastery/cli/transformations/unshot.rb
hanamimastery-cli-0.3.1 lib/hanamimastery/cli/transformations/unshot.rb
hanamimastery-cli-0.3.0 lib/hanamimastery/cli/transformations/unshot.rb
hanamimastery-cli-0.2.2 lib/hanamimastery/cli/transformations/unshot.rb
hanamimastery-cli-0.2.1 lib/hanamimastery/cli/transformations/unshot.rb
hanamimastery-cli-0.2.0 lib/hanamimastery/cli/transformations/unshot.rb
hanamimastery-cli-0.1.0 lib/hanamimastery/cli/transformations/unshot.rb