Skip to content

Commit

Permalink
detect staff pd + alternates
Browse files Browse the repository at this point in the history
  • Loading branch information
33tm committed Sep 16, 2024
1 parent 52ef8f1 commit 0bef192
Show file tree
Hide file tree
Showing 2 changed files with 407 additions and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/genAlternates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const EARLIEST_AM_HOUR = 6;

const timeGetterRegex = /\(?(1?\d)(?::(\d{2}))? *(?:am)? *[-–] *(1?\d)(?::(\d{2}))? *(noon|pm)?\)?/;
const gradeGetterRegex = /(?<!Period |#)\d+(\/\d+)*(?!(?:st|nd|rd|th)\s+Period)/i;
const altScheduleRegex = /schedule|extended/i; // /schedule|extended|lunch/i
const altScheduleRegex = /staff pd|alt. sched|schedule|extended/i; // /schedule|extended|lunch/i
const noSchoolRegex = /holiday|no\s(students|school)|break|development/i;
const primeReplacesSelfRegex = /PRIME (replaces|instead of) SELF|No SELF, extra PRIME/i;
// const selfStudyHallRegex = /9\/10 (SELF|Study Hall), 11\/12 (SELF|Study Hall)/i;
Expand Down
Loading

0 comments on commit 0bef192

Please sign in to comment.