fix multiple line substitution

This commit is contained in:
2024-03-24 22:32:22 +08:00
parent 500ba14565
commit 7d289c9db7
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ if WEBHOOK:
x_url_regex = re.compile(r"^(?:https?://)(?:www\.|mobile\.|)(?:x|twitter)\.com/(.+)/status/(\d+)")
x_media_regex = re.compile(r"^(?:https?://)(pbs|video)\.twimg\.com/(.*)")
x_tco_regex = re.compile(r"(?:https?://)t\.co/.+$", re.M)
message_url_regex = re.compile(r"\{\w+\}", re.M)
message_url_regex = re.compile(r"\{.+\}", re.S)
logging.basicConfig(
level=os.getenv("LOG_LEVEL", "WARNING"),