We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b69134 commit 7837dacCopy full SHA for 7837dac
lib/email_reply_parser.rb
@@ -133,7 +133,7 @@ def read(text)
133
134
private
135
EMPTY = "".freeze
136
- SIGNATURE = '(?m)^(--|__|\w-$)|(^(\w+\s*){1,3} ym morf tneS$)'
+ SIGNATURE = '(?m)(--\s*$|__\s*$|\w-$)|(^(\w+\s*){1,3} ym morf tneS$)'
137
138
begin
139
require 're2'
@@ -152,7 +152,7 @@ def read(text)
152
# Returns nothing.
153
def scan_line(line)
154
line.chomp!("\n")
155
- line.lstrip! unless SIG_REGEX.match(line)
+ line.lstrip! unless SIG_REGEX.match(line)
156
157
# We're looking for leading `>`'s to see if this line is part of a
158
# quoted Fragment.
0 commit comments