Skip to content

Commit

Permalink
:docs: Update comment (#1526)
Browse files Browse the repository at this point in the history
  • Loading branch information
KATO-Hiro committed Nov 29, 2024
1 parent 02ca91b commit 055c9df
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/utils/contest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,9 +387,8 @@ export const PAST_TRANSLATIONS = {
* - "past15-open" (matches)
* - "past16-open" (matches)
* - "past99-open" (matches)
* - "past1-open" (does not match)
*/
const regexForPast = /^past(\d{2})-open$/i;
const regexForPast = /^past(\d+)-open$/i;

export function getPastContestLabel(
translations: Readonly<ContestLabelTranslations>,
Expand Down

0 comments on commit 055c9df

Please sign in to comment.