Skip to content

Commit

Permalink
fix: change regex for oa heading fixes Laboratoria#1506
Browse files Browse the repository at this point in the history
  • Loading branch information
unjust committed Aug 1, 2023
1 parent 6b34188 commit db525c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/create-cohort-project.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ const addLocalizedLearningObjectives = async (repoDir, opts, meta) => {
const readmePath = path.join(repoDir, 'README.md');
const contents = (await readFile(readmePath, 'utf8')).split('\n');
const startIndex = contents.findIndex(
line => /^## \d\. Objetivos de aprendiza(je|gem)/i.test(line),
line => /^## \d+\. Objetivos de aprendiza(je|gem)/i.test(line),
);

if (startIndex < 0) {
throw new Error('README.md is missing Learning Objectives heading');
}
Expand Down

0 comments on commit db525c6

Please sign in to comment.