| 1 | // Package reply package is essentially a source code conversion |
| 2 | // of the ruby library https://github.com/discourse/email_reply_trimmer. |
| 3 | // The core logic is a almost line by line conversion. |
| 4 | // |
| 5 | // This package has a dependency on excellent regex library github.com/dlclark/regexp2. |
| 6 | // The reason for not using the standard regex library was due to the fact that |
| 7 | // the regex package from the stdlib is not compatible with the library from the Ruby stdlib. |
| 8 | // |
| 9 | // All the tests were taken from the email_reply_trimmer library. |
| 10 | // |
| 11 | // Note: |
| 12 | // This code is not idiomatic go code, as, it was mostly adapted from the ruby code, |
| 13 | // however, the public APIs were kept simple as possible and does not expose any internal. |
| 14 | package reply |