Skip to content

Commit

Permalink
add comment with example patterns for regex
Browse files Browse the repository at this point in the history
  • Loading branch information
jmtcsngr committed Jun 23, 2021
1 parent 076b62e commit 70b72d0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bin/npg_manifest4study
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,10 @@ sub _uploaded_files {
my $files = {};

while (<$fh>) {
# regex checks for filename patterns including:
# xxxxx#z.cram
# xxxxx_y#z.cram
# xxxxx_y-y#z.cram
##no critic (RegularExpressions::RequireExtendedFormatting RegularExpressions::ProhibitEscapedMetacharacters ProhibitComplexRegexes)
if ( m{(\S+/(\d+)/((\d+)(?:_(\d)(?:-\d)*)?#(\d+)[.]cram)):.*Hash \(md5\):\s+(\S+)}sm ) {
my $path = $1;
Expand Down

0 comments on commit 70b72d0

Please sign in to comment.