Skip to content

Commit

Permalink
Tweak the On/wrote pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
Jason L Perry committed Dec 22, 2008
1 parent 73cb5ea commit db1b4d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/notification.rb
Expand Up @@ -43,7 +43,7 @@ def full_body(mail)
# Remove last lines like:
# On Nov 27, 2008, at 11:06 PM, Jason L Perry wrote:
def clean_reply(text)
pattern = /On .* wrote/
pattern = /on.*wrote/i
lines = text.split("\n")
lines.pop if pattern.match(lines.last)
lines.join("\n").strip
Expand Down

0 comments on commit db1b4d4

Please sign in to comment.