Skip to content
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: several file ending dots in catalog file regex(. -> \.) #325

Merged
merged 3 commits into from Sep 18, 2023

Conversation

skwde
Copy link
Contributor

@skwde skwde commented Sep 18, 2023

I guess the . should be actual dots in the regex, i.e. \..

Copy link
Member

@sirosen sirosen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much for the contribution!
You're right. . could match incorrectly if someone had .travis-yaml or something. (Not sure why they would do that, but that's not my job to worry about! 😂 )

There's one extra case I noticed, do you mind adding it to the PR?

src/check_jsonschema/catalog.py Outdated Show resolved Hide resolved
@sirosen
Copy link
Member

sirosen commented Sep 18, 2023

The failing check can be fixed with tox r -e generate-hooks-config. If you want to do that, it will make the PR pass. Otherwise, I'll run it and push the fix in a while.

@sirosen sirosen merged commit e50de87 into python-jsonschema:main Sep 18, 2023
20 checks passed
@skwde skwde deleted the fix-catalog-regex branch September 19, 2023 04:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants