quentez / talonjs

JavaScript port of the Talon email quote parsing library.
MIT License
15 stars 9 forks source link

Only remove quote if regex not found #21

Closed evonck closed 5 years ago

evonck commented 5 years ago

This PR is trying to fix bug link to adding a quote messages in your reply.

Instead of starting by removing the quote from gmail, microsoft etc... We first attempt to remove the quote based on the regex. If no regex is found then use the blockquote.

This PR is increasing the minimum node and lines, as we don't remove the quote before checking the marked line we need to make sure the limit is high enough to check most of the emails.

New PR to set this as a param will come after this one.

evonck commented 5 years ago

@quentez updated PR, if you have time to look at this one it would be great. Thanks

quentez commented 5 years ago

Why is there a #20 in the title?