Verified Commit acfe8f98 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fixed broken etsy regex

parent 7fe92c09
......@@ -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",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment