carpentries / styles

Styles for The Carpentries lessons. No README to avoid merge conflicts with lessons. Demo 👇
https://carpentries.github.io/lesson-example
Other
84 stars 94 forks source link

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

Closed maxim-belkin closed 2 years ago

maxim-belkin commented 2 years ago

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 carpentries/styles#611