Sha256: e220a9f22925b710e2309889ae8e9ad213b04ca63b98926c92e76fc84c7f3efc

Contents?: true

Size: 255 Bytes

Versions: 1

Compression:

Stored size: 255 Bytes

Contents

# frozen_string_literal: true
class DelimiterMatcher

  DELIMITER_CHARACTERS = "-_,=+~#*ᐧ—"
  DELIMITER_REGEX      = /^[[:blank:]]*[#{Regexp.escape(DELIMITER_CHARACTERS)}]+[[:blank:]]*$/

  def self.match?(line)
    line =~ DELIMITER_REGEX
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
email_reply_trimmer-0.2.0 lib/email_reply_trimmer/delimiter_matcher.rb