bot: Updated regex for handshake domains to allow SLDs
This commit is contained in:
parent
c492feb380
commit
9f09063734
7
bot.py
7
bot.py
@ -13,7 +13,7 @@ client = discord.Client(intents=intents)
|
||||
tree = app_commands.CommandTree(client)
|
||||
|
||||
icann_regex = r'^https://[a-z0-9]+(\.[a-z0-9]+)+(/[a-zA-Z0-9-.]*)*$'
|
||||
handshake_regex = r'^[a-z0-9]+$'
|
||||
handshake_regex = r'^[a-z0-9]+(\.[a-z0-9]+)*$'
|
||||
|
||||
@tree.command(name = "mirror", description = "Create a mirror of an ICANN site on a Handshake domain")
|
||||
async def mirror(interaction, handshakedomain: str, icannurl: str):
|
||||
@ -158,11 +158,6 @@ async def gitpull(interaction, handshakedomain: str):
|
||||
await user.send("Changes pulled for " + handshakedomain + "!")
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
def get_tlsa(input_string):
|
||||
lines = input_string.split("\n")
|
||||
for line in lines:
|
||||
|
Loading…
Reference in New Issue
Block a user