Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix Tests
  • Loading branch information
RickiJay-WMDE committed Sep 1, 2025
commit f66220e6980501f21a31550b9a6760d09dffd40b
2 changes: 1 addition & 1 deletion resolvers/util/clean_wikibase_url.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from model.enum import WikibaseURLType


FULL_URL_PATTERN = re.compile(r"https?://[a-z0-9\-_.\?=]+", re.IGNORECASE)
FULL_URL_PATTERN = re.compile(r"https?://[a-z0-9\-_.\?=/]+", re.IGNORECASE)


def clean_up_url(url: str, url_type: WikibaseURLType) -> str:
Expand Down
2 changes: 2 additions & 0 deletions tests/test_export_csv/test_export_metrics_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ def add_task(self, func: Callable, *args):
[
"wikibase_id",
"wikibase_type",
"base_url",
"quantity_observation_date",
"total_items",
"total_lexemes",
Expand All @@ -53,6 +54,7 @@ def add_task(self, func: Callable, *args):
[
r"\d+",
r"(WikibaseType\.(CLOUD|OTHER|SUITE)|)",
r"https?://[a-z0-9\-_.\?=/]+",
# Quantity
r"(\d{4}-\d\d-\d\d \d\d:\d\d:\d\d|)",
r"(\d+\.0|)",
Expand Down