mirror of
https://gitlab.com/chicken-riders/RcGcDb.git
synced 2025-02-23 00:54:09 +00:00
Fixed previous fix
This commit is contained in:
parent
4a07582d5d
commit
e256d7cd15
|
@ -16,6 +16,8 @@ class UpdateDB:
|
||||||
|
|
||||||
def json(self):
|
def json(self):
|
||||||
def remove_webhooks(arg):
|
def remove_webhooks(arg):
|
||||||
|
if not isinstance(arg, str):
|
||||||
|
return arg
|
||||||
re_match = re.match(r"^(\d{17,20})/[a-zA-Z0-9_-]{68}$", arg)
|
re_match = re.match(r"^(\d{17,20})/[a-zA-Z0-9_-]{68}$", arg)
|
||||||
if re_match is not None:
|
if re_match is not None:
|
||||||
return f"{re_match.group(1)}/[CENSORED DISCORD WEBHOOK TOKEN]"
|
return f"{re_match.group(1)}/[CENSORED DISCORD WEBHOOK TOKEN]"
|
||||||
|
|
Loading…
Reference in a new issue