fix(pterodactyl): pylint fixes
This commit is contained in:
parent
45797361a6
commit
882b0386f2
2 changed files with 6 additions and 6 deletions
|
@ -254,8 +254,8 @@ async def generate_achievement_embed(username: str, achievement: str, challenge:
|
|||
return embed
|
||||
|
||||
def mask_ip(string: str) -> str:
|
||||
def mask_ip(match):
|
||||
def check(match):
|
||||
ip = match.group(0)
|
||||
masked_ip = '.'.join(r'\*' * len(octet) for octet in ip.split('.'))
|
||||
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', check, string)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue