Skip to content

Commit

Permalink
merging regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
Pathogen Genomics, Wellcome Trust Sanger Institute committed Aug 13, 2021
1 parent 95cf36b commit 390d90a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/UpdatePipeline/Spreadsheet/SpreadsheetMetaData.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 390d90a

Please sign in to comment.