From 80f96d5bc00174245bfcc56d0978f1929082e2cf Mon Sep 17 00:00:00 2001 From: Henk Date: Sat, 14 Oct 2023 23:23:18 +0200 Subject: [PATCH] Allow # due to request for this --- utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils.py b/utils.py index ab90ea6a..6e39930b 100644 --- a/utils.py +++ b/utils.py @@ -98,9 +98,9 @@ def replaceblanklines(txt): #==================================================================# def removespecialchars(txt, koboldai_vars=None): if koboldai_vars is None or koboldai_vars.actionmode == 0: - txt = re.sub(r"[#/@%<>{}+=~|\^]", "", txt) + txt = re.sub(r"[/@%<>{}+=~|\^]", "", txt) else: - txt = re.sub(r"[#/@%{}+=~|\^]", "", txt) + txt = re.sub(r"[/@%{}+=~|\^]", "", txt) return txt #==================================================================#