Skip to content
Snippets Groups Projects
Commit f56db2e7 authored by George Marchment's avatar George Marchment
Browse files

update external script call identification

parent 8ae5e926
No related branches found
No related tags found
No related merge requests found
Pipeline #13940 passed with stage
in 2 minutes and 20 seconds
......@@ -58,8 +58,11 @@ class Process(Nextflow_Building_Blocks):
def get_external_scripts_call(self, code):
tab = []
for match in re.finditer(r"(\s|\/)([\w\_\-\&]+\/)*([\w\_\-\&]+)\.(sh|py|R|r|pl|rg)", code):
tab.append(match.group(0).strip())
for match in re.finditer(r"((\s|\/|\'|\")([\w\_\-\&]+\/)*([\w\_\-\&]+)\.(sh|py|R|r|pl|rg|bash))[^\w]", code):
word = match.group(1).strip()
if(word[0]=="'" or word[0]=='"'):
word = word[1:]
tab.append(word)
return list(set(tab))
def initialise_external_scripts_code(self, code, extension = "", previously_called = {}):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment