From a096ba22813d97acf5f88f9675b23c0e8e1dffe2 Mon Sep 17 00:00:00 2001 From: s2 Date: Tue, 28 Apr 2015 12:04:30 +0200 Subject: [PATCH] better signature detection --- quote.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quote.js b/quote.js index 83ebe0b..1469434 100644 --- a/quote.js +++ b/quote.js @@ -24,7 +24,7 @@ } //cut the signature - var signPosition = text.lastIndexOf('-- '); + var signPosition = text.lastIndexOf('\n-- \n') + 1; if (signPosition > 0) { text = text.substr(0, signPosition); }