remove '&' from URL patterns
'/?&#' -> '/?#' and '?&#' -> '?#' According to https://www.ietf.org/rfc/rfc3986.txt, URLs are "organized hierarchically" by using "the slash ("/"), question mark ("?"), and number sign ("#") characters to delimit components"
This commit is contained in:
@@ -18,7 +18,7 @@ class NgomikChapterExtractor(ChapterExtractor):
|
||||
category = "ngomik"
|
||||
root = "http://ngomik.in"
|
||||
pattern = (r"(?:https?://)?(?:www\.)?ngomik\.in"
|
||||
r"(/[^/?&#]+-chapter-[^/?&#]+)")
|
||||
r"(/[^/?#]+-chapter-[^/?#]+)")
|
||||
test = (
|
||||
("https://www.ngomik.in/14-sai-no-koi-chapter-1-6/", {
|
||||
"url": "8e67fdf751bbc79bc6f4dead7675008ddb8e32a4",
|
||||
|
||||
Reference in New Issue
Block a user