From 3f54ab637e75994016af4a61f7e99058d4d308dc Mon Sep 17 00:00:00 2001
From: Ruben Vorderman <r.h.p.vorderman@lumc.nl>
Date: Fri, 10 Aug 2018 09:25:03 +0200
Subject: [PATCH] use proper perl-style regexes

---
 fastqc.wdl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fastqc.wdl b/fastqc.wdl
index 6d924cf..f1d2388 100644
--- a/fastqc.wdl
+++ b/fastqc.wdl
@@ -21,10 +21,10 @@ task Fastqc {
     }
 
     # Chops of the .gz extension if present.
-    String name = sub(seqFile, "\\.gz$","")
+    String name = sub(seqFile, "\.gz$","")
     # This regex chops of the extension and replaces it with _fastqc for the reportdir.
     # Just as fastqc does it.
-    String reportDir = outdirPath + "/" + sub(basename(name), "\\.[^\\.]*$", "_fastqc")
+    String reportDir = outdirPath + "/" + sub(basename(name), "\.[^\.]*$", "_fastqc")
 
     command {
         set -e -o pipefail
-- 
GitLab