[fikfap] allow for dash in usernames (#9019)
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -119,4 +119,10 @@ __tests__ = (
|
||||
"linkSidebar" : dict,
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://fikfap.com/user/Hot-sauce-34",
|
||||
"#comment" : "'-' in username",
|
||||
"#class" : fikfap.FikfapUserExtractor,
|
||||
},
|
||||
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user