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); }