Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@

* Ensure `inflow_t` is always defined in `attach_hydro`, resolving a pylint use-before-assignment issue ([777](https://github.com/open-energy-transition/open-tyndp/pull/777)).

* Add missing regex anchors with `re.fullmatch` to `create_zenodo_deposition_cli` utils script ([778](https://github.com/open-energy-transition/open-tyndp/pull/778)).


## Upcoming PyPSA-Eur Release
* Security: SBOM security scan included in CI.
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