Allow # due to request for this

This commit is contained in:
Henk
2023-10-14 23:23:18 +02:00
parent 829ea147fc
commit 80f96d5bc0

View File

@@ -98,9 +98,9 @@ def replaceblanklines(txt):
#==================================================================# #==================================================================#
def removespecialchars(txt, koboldai_vars=None): def removespecialchars(txt, koboldai_vars=None):
if koboldai_vars is None or koboldai_vars.actionmode == 0: if koboldai_vars is None or koboldai_vars.actionmode == 0:
txt = re.sub(r"[#/@%<>{}+=~|\^]", "", txt) txt = re.sub(r"[/@%<>{}+=~|\^]", "", txt)
else: else:
txt = re.sub(r"[#/@%{}+=~|\^]", "", txt) txt = re.sub(r"[/@%{}+=~|\^]", "", txt)
return txt return txt
#==================================================================# #==================================================================#