diff --git a/web/src/types/BiDate.js b/web/src/types/BiDate.js index bd7a780e..4e73c654 100644 --- a/web/src/types/BiDate.js +++ b/web/src/types/BiDate.js @@ -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; }