We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7ef96a4 + 94797d3 commit 839ced4Copy full SHA for 839ced4
1 file changed
lib/email_reply_parser.rb
@@ -132,14 +132,8 @@ def read(text)
132
133
private
134
EMPTY = "".freeze
135
- SIGNATURE = '(?m)(--\s*$|__\s*$|\w-$)|(^(\w+\s*){1,3} ym morf tneS$)'
136
-
137
- begin
138
- require 're2'
139
- SIG_REGEX = RE2::Regexp.new(SIGNATURE)
140
- rescue LoadError
141
- SIG_REGEX = Regexp.new(SIGNATURE)
142
- end
+ SIGNATURE = '(?m)(--\s*$|__\s*$|\w-$)|(^(\w+\s+){1,3}ym morf tneS$)'
+ SIG_REGEX = Regexp.new(SIGNATURE)
143
144
### Line-by-Line Parsing
145
0 commit comments