Skip to content

Commit

Permalink
Replace "QX 20XX" with "early/late 20XX" in UI
Browse files Browse the repository at this point in the history
  • Loading branch information
glacials committed Jun 17, 2024
1 parent 86ad70b commit 7d29340
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions web/src/types/BiDate.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ export class BiDate {
});
}

if (this.rough.match(/Q[12] \d{4}/)) {
return this.rough.replace(/Q\d/, "early");
} else if (this.rough.match(/Q[34] \d{4}/)) {
return this.rough.replace(/Q\d/, "late");
}

return this.rough;
}

Expand Down

0 comments on commit 7d29340

Please sign in to comment.