Module: DelimiterMatcher
- Defined in:
- lib/runger_email_reply_trimmer/delimiter_matcher.rb
Constant Summary collapse
- DELIMITER_CHARACTERS =
'-_,=+~#*ᐧ—'
- DELIMITER_REGEX =
/^[[:blank:]]*[#{Regexp.escape(DELIMITER_CHARACTERS)}]+[[:blank:]]*$/
Class Method Summary collapse
Class Method Details
.match?(line) ⇒ Boolean
9 10 11 |
# File 'lib/runger_email_reply_trimmer/delimiter_matcher.rb', line 9 def match?(line) line =~ DELIMITER_REGEX end |