Add .cpp to ipd link regex

This commit is contained in:
I-Al-Istannen
2022-05-04 14:13:39 +02:00
parent a241672726
commit b8fe25c580
2 changed files with 4 additions and 1 deletions

View File

@ -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|java)$")
regex = self.s.get("link_regex", r"^.*/[^/]*\.(?:pdf|zip|c|cpp|java)$")
return re.compile(regex)