-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
email matcher fails when email address is in a question #201
Comments
Some further investigations: Fails to get flagged as invalidInput: "can you email [email protected]?" Url Matcher returns: '[email protected]?' rather than '[email protected]'
URL Matcher vs Email MatcherSo... why can't I replicate this in unit tests? Well... it turns out that if we have EmailMatcher BEFORE URL Matcher, everything just works. Unit tests were setup that way, and resulted in successful test after test, causing much confusion. Potential Fixes:
All that said: my own code can move EmailMatcher to be the first matcher, and that appears to resolve the issue for my usage. |
Unfortunately Let me think about this a bit more. |
Any update on this issue? Running into this as well. |
Email matcher handles email addresses that end in question marks as follows:
INPUT: "Can you please send an email to [email protected]?"
OUTPUT: "can you email {{{url0}}}[email protected]?{{{/url0}}}"
PROBLEM: that question mark is doing something to the regex, which matches correctly without it.
Note: I git cloned the repo and tried to take a closer look, but was unable to get any unit tests running. The rest of this message details problems related to dev setup rather than email matcher:
returns
The text was updated successfully, but these errors were encountered: