-
Notifications
You must be signed in to change notification settings - Fork 40
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
Unsafe string slicing in IgnoreRule.match method. It fails with Path type. #37
Comments
I'll be happy to merge a PR with a fix :-) @szczeles what do you think about this issue? |
Good point, I can fix it quickly. |
Thank you folks. I really appreciate that. |
Python's
Therefore, tricks like Kedro uses (directory negation: #36) do not work with |
Oh, got it. Thank you for the explanation. |
This is fixed on PyPI now in v0.1.2. |
Synopsis
After upgrade from
0.1.0
to0.1.1
I faced an issue with existing test. Looks like there is unsafe operation withabs_path
which supposed to be a string only. That's a wrong assuming, because most libraries support the both types: [str, Path].Code impacted: https://github.com/mherrmann/gitignore_parser/blob/v0.1.1/gitignore_parser.py#L143
Steps to reproduce
Observed behaviour
The text was updated successfully, but these errors were encountered: