Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
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
2 changes: 2 additions & 0 deletions doc/release_notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ Upcoming Open-TYNDP Release

**Bugfixes and Compatibility**

* Add missing regex anchors with ``re.fullmatch`` to ``create_zenodo_deposition_cli`` utils script (https://github.com/open-energy-transition/open-tyndp/pull/778).
Comment thread
daniel-rdt marked this conversation as resolved.
Outdated

**Documentation**

* Update benchmarking documentation tables and figures for v0.7.1 (https://github.com/open-energy-transition/open-tyndp/pull/711).
Expand Down
4 changes: 2 additions & 2 deletions utils/create_zenodo_deposition_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,8 +428,8 @@ def extract_zenodo_deposition_url(record_url: str) -> tuple[str, str]:
The Zenodo deposition API URL, or None if extraction fails.
"""
# Match both sandbox and production, with or without /files/...
m = re.match(
r"https://(?:sandbox\.)?zenodo\.org/records/(\d+)(/files/.*)?", record_url
m = re.fullmatch(
r"https://(?:sandbox\.)?zenodo\.org/records/(\d+)(/files(/.*)?)?", record_url
)
if not m:
raise ValueError(f"Invalid Zenodo record URL format: {record_url}. ")
Expand Down
Loading