(20260317) Tried headless and parallel mode.
This commit is contained in:
@@ -186,8 +186,15 @@ class AsyncTheCAOffice:
|
||||
# ┛
|
||||
|
||||
@staticmethod
|
||||
def remove_special_chars(s: str) -> str:
|
||||
def remove_special_chars(s: str | Any) -> str:
|
||||
|
||||
# If the input is not a string,
|
||||
# we convert that to a string:
|
||||
if not isinstance(s, str):
|
||||
s = str(s)
|
||||
|
||||
# If the input is a string,
|
||||
# we ensure we remove unsupported chars:
|
||||
return regex.replace(
|
||||
text = s,
|
||||
pattern = r"[^\w\d\- _]",
|
||||
|
||||
Reference in New Issue
Block a user