Skip to content

Commit

Permalink
Merge pull request #1358 from nakib103/fix_header
Browse files Browse the repository at this point in the history
Hotfix: update dir masking pattern in header
  • Loading branch information
nakib103 authored Feb 21, 2023
2 parents 9b7b961 + a495204 commit fc75dcc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion modules/Bio/EnsEMBL/VEP/Config.pm
Original file line number Diff line number Diff line change
Expand Up @@ -696,7 +696,14 @@ sub new {
next if !defined($value) || (ref($value) eq "ARRAY" && @{$value} == 0) || grep { /$flag/ } @skip_opts;

$value = join(" --$flag ", @{$value}) if ref($value) eq "ARRAY";
$value =~ s/(\/[\w-]+?)+\//\[PATH\]\//g;

if ($^O eq "MSWin32"){
$value =~ s/.+(?=\\)/\[PATH\]/g;
}
else {
$value =~ s/.+(?=\/)/\[PATH\]/g;
}

$config_command .= $value eq 1? "--$flag " : "--$flag $value ";
}

Expand Down
2 changes: 1 addition & 1 deletion modules/Bio/EnsEMBL/VEP/Constants.pm
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ use warnings;
use base qw(Exporter);

our $VEP_VERSION = 109;
our $VEP_SUB_VERSION = 2;
our $VEP_SUB_VERSION = 3;

our @EXPORT_OK = qw(
@FLAG_FIELDS
Expand Down

0 comments on commit fc75dcc

Please sign in to comment.