Skip to content

Commit

Permalink
Merge pull request #3094 from mirpedrol/custom-pipeline-name-check
Browse files Browse the repository at this point in the history
Pipelines: allow numbers in custom pipeline name
  • Loading branch information
mirpedrol authored Aug 2, 2024
2 parents 1c09b35 + 5b74253 commit 198c6dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
- Fix number of arguments for pipelines_create within the command_create function ([#3074](https://github.com/nf-core/tools/pull/3074))
- Update python:3.12-slim Docker digest to 740d94a ([#3079](https://github.com/nf-core/tools/pull/3079))
- Update pre-commit hook pre-commit/mirrors-mypy to v1.11.1 ([#3091](https://github.com/nf-core/tools/pull/3091))
- Pipelines: allow numbers in custom pipeline name ([#3094](https://github.com/nf-core/tools/pull/3094))

## [v2.14.1 - Tantalum Toad - Patch](https://github.com/nf-core/tools/releases/tag/2.14.1) - [2024-05-09]

Expand Down
2 changes: 1 addition & 1 deletion nf_core/pipelines/create/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def name_nospecialchars(cls, v: str, info: ValidationInfo) -> str:
if not re.match(r"^[a-z]+$", v):
raise ValueError("Must be lowercase without punctuation.")
else:
if not re.match(r"^[a-zA-Z-_]+$", v):
if not re.match(r"^[-\w]+$", v):
raise ValueError("Must not contain special characters. Only '-' or '_' are allowed.")
return v

Expand Down

0 comments on commit 198c6dc

Please sign in to comment.