mirror of
https://github.com/Garmelon/PFERD.git
synced 2023-12-21 10:23:01 +01:00
Add .cpp
to ipd link regex
This commit is contained in:
parent
a241672726
commit
b8fe25c580
@ -22,6 +22,9 @@ ambiguous situations.
|
|||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
### Changed
|
||||||
|
- Add `.cpp` to IPD link regex
|
||||||
|
|
||||||
## 3.4.0 - 2022-05-01
|
## 3.4.0 - 2022-05-01
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
@ -27,7 +27,7 @@ class KitIpdCrawlerSection(HttpCrawlerSection):
|
|||||||
return target
|
return target
|
||||||
|
|
||||||
def link_regex(self) -> Pattern[str]:
|
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)
|
return re.compile(regex)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user