commit db0d377ebcd92c96ecd2290f68c0d49311ec5563
parent 372816a94a59da4ee82cf0e4972a7b89559e4492
Author: Gaute Hope <eg@gaute.vetsj.com>
Date: Wed, 25 Sep 2013 18:16:12 +0200
add exclamation
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/sup/modes/edit_message_mode.rb b/lib/sup/modes/edit_message_mode.rb
@@ -635,12 +635,12 @@ private
if HookManager.enabled? "mentions-attachments"
HookManager.run "mentions-attachments", :header => @header, :body => @body
else
- @body.any? { |l| l.fix_encoding =~ /^[^>]/ && l.fix_encoding =~ /\battach(ment|ed|ing|)\b/i }
+ @body.any? { |l| l.fix_encoding! =~ /^[^>]/ && l.fix_encoding! =~ /\battach(ment|ed|ing|)\b/i }
end
end
def top_posting?
- @body.join("\n").fix_encoding =~ /(\S+)\s*Excerpts from.*\n(>.*\n)+\s*\Z/
+ @body.join("\n").fix_encoding! =~ /(\S+)\s*Excerpts from.*\n(>.*\n)+\s*\Z/
end
def sig_lines