forked from blizzthewolf/SeaCogs
fix(pterodactyl): use an escaped * for ip masking so markdown isn't triggered
This commit is contained in:
parent
306148ea69
commit
f93223fd36
1 changed files with 1 additions and 1 deletions
|
@ -256,6 +256,6 @@ async def generate_achievement_embed(username: str, achievement: str, challenge:
|
||||||
def mask_ip(string: str) -> str:
|
def mask_ip(string: str) -> str:
|
||||||
def mask_ip(match):
|
def mask_ip(match):
|
||||||
ip = match.group(0)
|
ip = match.group(0)
|
||||||
masked_ip = '.'.join('*' * len(octet) for octet in ip.split('.'))
|
masked_ip = '.'.join(r'\*' * len(octet) for octet in ip.split('.'))
|
||||||
return masked_ip
|
return masked_ip
|
||||||
return re.sub(r'\b(?:\d{1,3}\.){3}\d{1,3}\b', mask_ip, string)
|
return re.sub(r'\b(?:\d{1,3}\.){3}\d{1,3}\b', mask_ip, string)
|
||||||
|
|
Loading…
Reference in a new issue