Skip to content

Commit

Permalink
Update nf_core/pipelines/create/utils.py
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Talbot <[email protected]>
  • Loading branch information
mirpedrol and adamrtalbot authored Aug 2, 2024
1 parent 8a781b8 commit 5b74253
Showing 1 changed file with 1 addition and 1 deletion.
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-_0-9]+$", 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 5b74253

Please sign in to comment.