Skip to content
Merged
Changes from 1 commit
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
Next Next commit
don't read param expressions with spaces as params
  • Loading branch information
mirpedrol committed Jul 10, 2025
commit ef427b5dd263e3ce5990517ff4c8384d6dd578e3
2 changes: 1 addition & 1 deletion nf_core/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def fetch_wf_config(wf_path: Path, cache_config: bool = True) -> dict:
if result is not None:
nfconfig_raw, _ = result
nfconfig = nfconfig_raw.decode("utf-8")
multiline_key_value_pattern = re.compile(r"(^|\n)([^\n=]+?)\s*=\s*((?:(?!\n[^\n=]+?\s*=).)*)", re.DOTALL)
multiline_key_value_pattern = re.compile(r"(^|\n)([^\n=\s]+?)\s*=\s*((?:(?!\n[^\n=]+?\s*=).)*)", re.DOTALL)

for config_match in multiline_key_value_pattern.finditer(nfconfig):
k = config_match.group(2).strip()
Expand Down
Loading