WAL truncating #769

This commit is contained in:
jokob-sk
2024-11-22 13:23:11 +11:00
parent eee84b23b8
commit c5ef9645e6
4 changed files with 13 additions and 11 deletions

View File

@@ -44,7 +44,7 @@ def handleEmpty(input):
return 'null'
else:
# Validate and sanitize message content
# Remove potentially problematic characters if string
# Remove potentially problematic characters in string
if isinstance(input, str):
input = re.sub(r'[^\x00-\x7F]+', ' ', input)
input = input.replace('\n', '') # Removing new lines