better signature detection

This commit is contained in:
s2
2015-04-28 12:04:30 +02:00
parent 1c457d3008
commit a096ba2281

View File

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