From 390d90a73d20816f57041f5e560b0abc6176c9db Mon Sep 17 00:00:00 2001 From: "Pathogen Genomics, Wellcome Trust Sanger Institute" Date: Fri, 13 Aug 2021 12:06:00 +0100 Subject: [PATCH] merging regexp --- lib/UpdatePipeline/Spreadsheet/SpreadsheetMetaData.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/UpdatePipeline/Spreadsheet/SpreadsheetMetaData.pm b/lib/UpdatePipeline/Spreadsheet/SpreadsheetMetaData.pm index 8432e03..9a99167 100644 --- a/lib/UpdatePipeline/Spreadsheet/SpreadsheetMetaData.pm +++ b/lib/UpdatePipeline/Spreadsheet/SpreadsheetMetaData.pm @@ -142,8 +142,7 @@ sub _file_name_without_extension my ($self, $input_filename, $input_file_type) = @_; return undef unless(defined($input_filename) && defined($input_file_type)); $input_filename =~ s!.$input_file_type!!; - $input_filename =~ s!\_1$!!; - $input_filename =~ s!\_2$!!; + $input_filename =~ s!\_[12]$!!; return $input_filename; }