Commit bcbdd3e
Changed files (1)
src
messages
src/messages/utils.py
@@ -94,7 +94,7 @@ def remove_prefix(s: str, prefix: str, separator: str = ",") -> str:
"""Remove the prefix from the string."""
if not prefix:
return s
- final = ""
+ final = s
for pfx in strings_list(prefix, separator=separator):
if s.lower().startswith(pfx.lower()):
final = s[len(pfx) :].lstrip()