-
-
Notifications
You must be signed in to change notification settings - Fork 49
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
Define minimum length per filter #124
Conversation
Thanks for your PR, I think it's a good idea! Since extrakto can be used a a module and via the cli as well, could you update your PR to avoid breaking changes? IMHO it should only use min_length from the filter if no min_length param/arg was specified. Thanks :) |
Sure! I don't know why I haven't thought of that 😅 I'll also fix the formatting issue, so black will be happy :) |
Alright, I fixed the formatting issue and made the global min_length (if present) overwrite a filter's min_length. Since the tests pass (at least on my machine xD) I would assume, that there are no more breaking changes :) |
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.
Please take a look at my comments
Thanks for your patience! I fixed the two issues you mentioned. |
Looking good, thank you! :) |
Currently, extracto uses the same minimum length for all filters. This PR introduces an optional config key to change the minimum length for each filter individually. The default value is still five, though.