azure client

This commit is contained in:
seehi 2023-12-06 11:58:13 +08:00
parent f03a6d8029
commit a617aab65b
3 changed files with 98 additions and 67 deletions

View file

@ -305,9 +305,3 @@ def parse_recipient(text):
pattern = r"## Send To:\s*([A-Za-z]+)\s*?" # hard code for now
recipient = re.search(pattern, text)
return recipient.group(1) if recipient else ""
def ensure_trailing_slash(url):
if not url:
return url
return url if url.endswith("/") else url + "/"