From ff466c561f417215fbee8fd738d459f2271702ce Mon Sep 17 00:00:00 2001
From: George Marchment <georgemarchment@yahoo.fr>
Date: Wed, 28 Aug 2024 11:37:53 +0200
Subject: [PATCH] added ruby external file extraction

---
 src/process.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/process.py b/src/process.py
index 76f5993..4879073 100644
--- a/src/process.py
+++ b/src/process.py
@@ -58,7 +58,7 @@ class Process(Nextflow_Building_Blocks):
     def get_external_scripts_call(self):
         code = self.get_script_code()
         tab = []
-        for match in re.finditer(r"([^\s\\\*]+\.(sh|py|R|r|pl))[^\w]", code):
+        for match in re.finditer(r"([^\s\\\*]+\.(sh|py|R|r|pl|rg))[^\w]", code):
             tab.append(match.group(1))
         return list(set(tab))
     
@@ -124,8 +124,8 @@ class Process(Nextflow_Building_Blocks):
         libraries+= self.get_R_libraries_loaded_internal_script()
         libraries+= self.get_R_libraries_loaded_external_scripts()
         return list(set(libraries))
-          
-            
+
+
     def get_perl_modules_imported_internal_script(self):
         libraries = []
         libraries+= get_perl_modules(self.get_script_code())
-- 
GitLab