This commit is contained in:
Dylan
2025-11-02 19:32:35 +00:00
parent 9d83c962e7
commit e5b9fb9824
3 changed files with 12 additions and 5 deletions

View File

@@ -3,7 +3,7 @@ import io
from configHandler import config
pathregex = re.compile("\\w{1,15}\\/(status|statuses)\\/(\\d{2,20})")
endTCOregex = re.compile("(^.*?) +https:\/\/t.co\/.*?$")
endTCOregex = re.compile("(^.*?)[ \n]+https:\/\/t.co\/.*?$",flags=re.DOTALL)
def getTweetIdFromUrl(url):
match = pathregex.search(url)