Skip to content

Commit

Permalink
Merge pull request #3115 from mirpedrol/include-spaces
Browse files Browse the repository at this point in the history
Components: allow spaces at the betinning of include statements
  • Loading branch information
mirpedrol committed Aug 14, 2024
2 parents c95a85e + d838c86 commit 2aa8b55
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 @@ -68,6 +68,7 @@
- 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))
- Add bot action to update textual snapshots and write bot documentation ([#3102](https://github.com/nf-core/tools/pull/3102))
- Components: allow spaces at the betinning of include statements ([#3115](https://github.com/nf-core/tools/pull/3115))

## [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/components/components_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def get_components_to_install(subworkflow_dir: Union[str, Path]) -> Tuple[List[s
regex = re.compile(
r"include(?: *{ *)([a-zA-Z\_0-9]*)(?: *as *)?(?:[a-zA-Z\_0-9]*)?(?: *})(?: *from *)(?:'|\")(.*)(?:'|\")"
)
match = regex.match(line)
match = regex.search(line)
if match and len(match.groups()) == 2:
name, link = match.groups()
if link.startswith("../../../"):
Expand Down

0 comments on commit 2aa8b55

Please sign in to comment.