From 66c8114dce14b59fa52bac47723fe78f002cc7f1 Mon Sep 17 00:00:00 2001 From: Albert <91633962+albertying@users.noreply.github.com> Date: Fri, 24 Feb 2023 04:56:17 -0500 Subject: [PATCH] Remove leading and trailing spaces in custom popup (#4021) albertying --- frontend/src/ts/popups/custom-text-popup.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/ts/popups/custom-text-popup.ts b/frontend/src/ts/popups/custom-text-popup.ts index d95a57f62..b8e401072 100644 --- a/frontend/src/ts/popups/custom-text-popup.ts +++ b/frontend/src/ts/popups/custom-text-popup.ts @@ -183,7 +183,7 @@ $(`${popup} .randomInputFields .time input`).on("keypress", () => { function apply(): void { let text = ($(`${popup} textarea`).val() as string).normalize(); - // text = text.trim(); + text = text.trim(); // text = text.replace(/[\r]/gm, " "); text = text.replace(/\\\\t/gm, "\t"); text = text.replace(/\\\\n/gm, "\n");