[fikfap] allow for dash in usernames (#9019)

This commit is contained in:
wise-immersion
2026-02-08 10:07:00 +00:00
committed by GitHub
parent 56f2790626
commit 5d9b607158
2 changed files with 7 additions and 1 deletions

View File

@@ -86,7 +86,7 @@ class FikfapPostExtractor(FikfapExtractor):
class FikfapUserExtractor(FikfapExtractor):
subcategory = "user"
pattern = BASE_PATTERN + r"/user/(\w+)"
pattern = BASE_PATTERN + r"/user/([\w-]+)"
example = "https://fikfap.com/user/USER"
def posts(self):

View File

@@ -119,4 +119,10 @@ __tests__ = (
"linkSidebar" : dict,
},
{
"#url" : "https://fikfap.com/user/Hot-sauce-34",
"#comment" : "'-' in username",
"#class" : fikfap.FikfapUserExtractor,
},
)