From 1dc4b8bf507da205db57cb104bf06cb143c04087 Mon Sep 17 00:00:00 2001 From: erew123 <35898566+erew123@users.noreply.github.com> Date: Sun, 7 Jan 2024 08:38:39 +0000 Subject: [PATCH] Add $ to demo page regex --- templates/admin.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/admin.html b/templates/admin.html index d0a0c4b..3b23b2d 100644 --- a/templates/admin.html +++ b/templates/admin.html @@ -420,7 +420,8 @@ let cleanedText = textInput.replace(/ \- | \– /g, ' '); // Replace hyphens cleanedText = cleanedText.replace(/%/g, " percent"); //cleanedText = cleanedText.replace(/([!?.])\1+/g, '$1'); - cleanedText = cleanedText.replace(/[^a-zA-Z0-9\s\.,;:!?\-\'"À-ÿ\u0400-\u04FF]/g, ''); + //cleanedText = cleanedText.replace(/[^a-zA-Z0-9\s\.,;:!?\-\'"À-ÿ\u0400-\u04FF]/g, ''); + cleanedText = cleanedText.replace(/[^a-zA-Z0-9\s\.,;:!?\-\'"À-ÿ\u0400-\u04FF\$]/g, '') cleanedText = cleanedText.replace(/\n+/g, ' '); cleanedText = cleanedText.replace(/\.\s'/g, ".'"); // Remove space between period and single quote //cleanedText = cleanedText.replace(/'/g, ""); // Remove all single quotes