File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 60
60
- Update pre-commit hook astral-sh/ruff-pre-commit to v0.11.2 ([ #3521 ] ( https://github.com/nf-core/tools/pull/3521 ) )
61
61
- Fix indentation in included_configs API docs ([ #3523 ] ( https://github.com/nf-core/tools/pull/3523 ) )
62
62
- chore(deps): update python:3.12-slim docker digest to a866731 ([ #3527 ] ( https://github.com/nf-core/tools/pull/3527 ) )
63
+ - adding boundary in regex ([ #3535 ] ( https://github.com/nf-core/tools/pull/3535 ) )
63
64
- switch to using runsOn runners in nf-core/tools repo ([ #3537 ] ( https://github.com/nf-core/tools/pull/3537 ) )
64
65
65
66
## [ v3.2.0 - Pewter Pangolin] ( https://github.com/nf-core/tools/releases/tag/3.2.0 ) - [ 2025-01-27]
Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ def get_inputs_from_main_nf(self) -> None:
207
207
for line in input_data .split ("\n " ):
208
208
channel_elements : Any = []
209
209
line = line .split ("//" )[0 ] # remove any trailing comments
210
- regex = r"(val|path)\s*(\(([^)]+)\)|\s*([^)\s,]+))"
210
+ regex = r"\b (val|path)\s*(\(([^)]+)\)|\s*([^)\s,]+))"
211
211
matches = re .finditer (regex , line )
212
212
for _ , match in enumerate (matches , start = 1 ):
213
213
input_val = None
@@ -247,7 +247,7 @@ def get_outputs_from_main_nf(self):
247
247
return outputs
248
248
output_data = data .split ("output:" )[1 ].split ("when:" )[0 ]
249
249
regex_emit = r"emit:\s*([^)\s,]+)"
250
- regex_elements = r"(val|path|env|stdout)\s*(\(([^)]+)\)|\s*([^)\s,]+))"
250
+ regex_elements = r"\b (val|path|env|stdout)\s*(\(([^)]+)\)|\s*([^)\s,]+))"
251
251
for line in output_data .split ("\n " ):
252
252
match_emit = re .search (regex_emit , line )
253
253
matches_elements = re .finditer (regex_elements , line )
You can’t perform that action at this time.
0 commit comments