-
-
Notifications
You must be signed in to change notification settings - Fork 880
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
Add additional slurs configuration option. Closes #1464. #1612
Conversation
It is possible to additional regex for slurs filtering. It can be done through `additional_slurs` option in config file.
9e78f9c
to
07e5640
Compare
Sry I've been slow on this, I'll get to it shortly. |
# additional_slurs: | ||
# ''' | ||
# (\bThis\b)|(\bis\b)|(\bsample\b) | ||
# ''' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The heredoc makes sense here I think, although hjson might be able to handle everything after the :
fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thanks! I'll let nutomic also go over it.
Thanks @ba1ash! |
Greetings!
Implemented #1464.
Without a test :( I don't know how to test this gracefully. I don't like the idea of config file modification at runtime. Maybe it's okay to fill in
additional_slurs
option by default with some slurs and rely on them in test.If someone has a suggestion about the proper test implementation I will be happy to implement it :)