Skip to content
Snippets Groups Projects
Verified Commit acfe8f98 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fixed broken etsy regex

parent 7fe92c09
Branches
No related tags found
No related merge requests found
......@@ -118,7 +118,7 @@ class Etsy(BasicUsernameInPathProvider):
label = "Etsy"
url = "https://etsy.com"
domain_regex = r"^(\w+\.)*etsy\.com"
username_regex = r"^\/[a-zA-Z-_]+/shop/([\w\.]+)/?$"
username_regex = r"^\/(?:[a-zA-Z-_]+/)?shop/([\w\.]+)/?$"
@registry.register
......
......@@ -17,6 +17,10 @@ from retribute_api.search import means
"https://www.etsy.com/fr_CA/shop/xxPETRICHORxx",
{"provider": "etsy", "id": "xxPETRICHORxx"},
),
(
"https://www.etsy.com/shop/xxPETRICHORxx",
{"provider": "etsy", "id": "xxPETRICHORxx"},
),
("https://tipeee.com/username", {"provider": "tipeee", "id": "username"}),
(
"https://custom.com/username?retribute",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment