From 2c7434fdbd2547d75ebcb5eabb0218f769c3d85c Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sun, 11 Oct 2020 13:23:09 -0400 Subject: [PATCH] fix --- src/commands/score.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/score.ts b/src/commands/score.ts index df5afa6..829c67b 100644 --- a/src/commands/score.ts +++ b/src/commands/score.ts @@ -161,7 +161,7 @@ export default class Score extends Command { score.inquiries.forEach((inq) => { const testDate = (new Date(new Date(inq.date).setHours(2190))); // eslint-disable-next-line no-useless-escape - if (testDate > new Date()) desc += `**Department/Service:** ${inq.name}\n**Reason:** ${inq.reason}\n**Date:** ${inq.date.toLocaleString('en-us')} ET\n\n`.replace('*', '\*'); + if (testDate > new Date()) desc += `**Department/Service:** ${inq.name}\n**Reason:** ${inq.reason}\n**Date:** ${inq.date.toLocaleString('en-us')} ET\n\n`.replace('\\*\g', '\*'); }); embed.setDescription(desc); }