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

lesson_check.py: use proper regex for matching episode files #615

Merged
merged 1 commit into from
Jul 12, 2021

Conversation

maxim-belkin
Copy link
Contributor

Currently used regex does not match episode filenames for two reasons:

  1. Missing ./ in the beginning of the filenames
  2. CHECKERS contain regex-es, not patterns, so * is a modifier for the previous character and not 'match-anything' kind of thing.

As a result, all episode files were checked using CheckGeneric class and not the CheckEpisode one.

Tangentially related to #611

@maxim-belkin maxim-belkin merged commit 14d7356 into carpentries:gh-pages Jul 12, 2021
@maxim-belkin maxim-belkin deleted the use-proper-regex branch July 12, 2021 12:40
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

1 participant