-
Notifications
You must be signed in to change notification settings - Fork 83
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
Fix thanks regex #142
Comments
I think this might have been intentional for typos. |
I think people never make typos such as |
I don't feel like people talk about tanks too often I would just leave this in and add the others if you think they are needed. At the same time I don't have any strong feelings about this issue. |
@dting hence this issue is a Priority 3 and small issue. 😄 |
Addressing alternative words (do you want to recognize 'gracias', etc), as well as a more stable/extendable option, I would suggest creating a dictionary of regex patterns rather than making one monster pattern. |
@ArielLeslie, @dcsan have to decide whether to include thanks in other languages. |
May also want to catch thankyou with a missing space. |
Adding a |
Thanks users with the following. Discovered by @brainyfarm |
Current RegEx: https://regex101.com/r/hH5cN7/7
Proposed RegEx: https://regex101.com/r/hH5cN7
Repo file: https://github.com/dcsan/gitterbot/blob/master/nap/data/rooms/RoomMessages.js#L47
Replies to unwanted words such as tank and tanks must not be listened to
Don't listen to username with the regex pattern matching thanks.
Also thank on writing the following
The text was updated successfully, but these errors were encountered: