lib/mail_extract/line.rb in mail_extract-0.1.1 vs lib/mail_extract/line.rb in mail_extract-0.1.2
- old
+ new
@@ -35,10 +35,10 @@
private
def detect_type(line)
# Detects the start line of quote text
- if line.strip =~ /^On/ && line =~ /at [\d:]+/ && line.strip =~ /wrote:?\z/
+ if line.strip =~ /^On\s/i && line =~ /at [\d:]+/ || line.strip =~ />? wrote:\z/
@type = :quote
return
end
@type = :text