WEBHOOK conversion + cleanup work🎣

This commit is contained in:
Jokob-sk
2023-10-22 09:29:25 +11:00
parent fdd199935a
commit 55e398dd10
17 changed files with 653 additions and 128 deletions

View File

@@ -510,6 +510,14 @@ def hide_email(email):
return email
#-------------------------------------------------------------------------------
def hide_string(input_string):
if len(input_string) < 3:
return input_string # Strings with 2 or fewer characters remain unchanged
else:
return input_string[0] + "*" * (len(input_string) - 2) + input_string[-1]
#-------------------------------------------------------------------------------
def removeDuplicateNewLines(text):
if "\n\n\n" in text: