Răsfoiți Sursa

Fix formatting

Tulir Asokan 3 ani în urmă
părinte
comite
ef772decd7
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  1. 3 1
      mautrix_instagram/portal.py

+ 3 - 1
mautrix_instagram/portal.py

@@ -101,7 +101,9 @@ MediaUploadFunc = Callable[["u.User", MediaData, IntentAPI], Awaitable[MediaMess
 # This doesn't need to capture all valid URLs, it's enough to catch most of them.
 # This doesn't need to capture all valid URLs, it's enough to catch most of them.
 # False negatives simply mean the link won't be linkified on Instagram,
 # False negatives simply mean the link won't be linkified on Instagram,
 # but false positives will cause the message to fail to send.
 # but false positives will cause the message to fail to send.
-SIMPLE_URL_REGEX = re.compile(r"(?P<url>https?://[\da-z.-]+\.[a-z]{2,}(?:/[^\s]*)?)", flags=re.IGNORECASE)
+SIMPLE_URL_REGEX = re.compile(
+    r"(?P<url>https?://[\da-z.-]+\.[a-z]{2,}(?:/[^\s]*)?)", flags=re.IGNORECASE
+)
 
 
 
 
 class Portal(DBPortal, BasePortal):
 class Portal(DBPortal, BasePortal):