fix: correct regex pattern in get_fragment_hash function to properly match fragment hash

This commit is contained in:
bohd4nx
2026-07-05 16:47:26 +03:00
parent 0a361c8c3a
commit b11b9f299b
+1 -1
View File
@@ -28,7 +28,7 @@ async def get_fragment_hash(
if response.status_code != 200:
raise FragmentPageError(FragmentPageError.BAD_STATUS.format(status=response.status_code, url=page_url))
match = re.search(r"(?:https://fragment\.com)?/api\?hash=([a-f0-9]+)", response.text)
match = re.search(r"(?:https://fragment\.com)?\\?/api\?hash=([a-f0-9]+)", response.text)
if not match:
raise FragmentPageError(FragmentPageError.NOT_FOUND.format(url=page_url))