mirror of
https://github.com/Garmelon/PFERD.git
synced 2025-08-15 12:02:27 +02:00
Simplify IPD crawler link regex
This commit is contained in:
@@ -27,7 +27,7 @@ class KitIpdCrawlerSection(HttpCrawlerSection):
|
||||
return target
|
||||
|
||||
def link_regex(self) -> Pattern[str]:
|
||||
regex = self.s.get("link_regex", r"^.*/[^/]*\.(?:pdf|zip|c|cpp|java)$")
|
||||
regex = self.s.get("link_regex", r"^.*?[^/]+\.(pdf|zip|c|cpp|java)$")
|
||||
return re.compile(regex)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user