Skip to content

Commit d9cff35

Browse files
committed
use inverse() in url_filter
1 parent c99ebd2 commit d9cff35

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

src/fundus/publishers/us/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ class US(metaclass=PublisherGroup):
280280
name="Rest of World",
281281
domain="https://restofworld.org/",
282282
parser=RestOfWorldParser,
283-
url_filter=regex_filter(r"restofworld\.org\/20\d{2}\/"),
283+
url_filter=inverse(regex_filter(r"restofworld\.org\/20\d{2}\/")),
284284
sources=[
285285
RSSFeed("https://restofworld.org/feed/latest/"),
286286
Sitemap("https://restofworld.org/sitemap.xml"),

tests/resources/parser/test_data/us/RestOfWorld.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1308,7 +1308,22 @@
13081308
"publishing_date": "2025-10-21 06:00:00-04:00",
13091309
"title": "The world needs more spaceports. Oman wants to help",
13101310
"topics": [
1311-
"Advanced Rocket Technologies,duqm,etco,etlaq,Feature,Features,global spaceport alliance,launchpads,nascom,phantom space,rocket launch,rockets,satmena,Space,spaceport,special economic zone"
1311+
"Advanced Rocket Technologies",
1312+
"duqm",
1313+
"etco",
1314+
"etlaq",
1315+
"Feature",
1316+
"Features",
1317+
"global spaceport alliance",
1318+
"launchpads",
1319+
"nascom",
1320+
"phantom space",
1321+
"rocket launch",
1322+
"rockets",
1323+
"satmena",
1324+
"Space",
1325+
"spaceport",
1326+
"special economic zone"
13121327
]
13131328
}
13141329
}

0 commit comments

Comments
 (0)