Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Signature regular expression #53

Open
wli0503 opened this issue Aug 1, 2016 · 0 comments
Open

Signature regular expression #53

wli0503 opened this issue Aug 1, 2016 · 0 comments

Comments

@wli0503
Copy link

wli0503 commented Aug 1, 2016

I ran into some random situations where emails were not parsed correctly. Part of the email was chopped out, for example:
Hi Test,\n\n-This is a test
Will result in -This is a test fragment being hidden and considered as part of signature which it should not be. After digging more into the problem, we figured out that:
(?m)(--\s*$|__\s*$|\w-$)|(^(\w+\s*){1,3} ym morf tneS$)
The first matching group is testing against \w-, which is causing the problem. I can't think out of a better way to solve the problem other than take \w-$ part out so it opens to any suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant