Skip to content

Commit fc75dcc

Browse files
authored
Merge pull request #1358 from nakib103/fix_header
Hotfix: update dir masking pattern in header
2 parents 9b7b961 + a495204 commit fc75dcc

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

Diff for: modules/Bio/EnsEMBL/VEP/Config.pm

+8-1
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,14 @@ sub new {
696696
next if !defined($value) || (ref($value) eq "ARRAY" && @{$value} == 0) || grep { /$flag/ } @skip_opts;
697697

698698
$value = join(" --$flag ", @{$value}) if ref($value) eq "ARRAY";
699-
$value =~ s/(\/[\w-]+?)+\//\[PATH\]\//g;
699+
700+
if ($^O eq "MSWin32"){
701+
$value =~ s/.+(?=\\)/\[PATH\]/g;
702+
}
703+
else {
704+
$value =~ s/.+(?=\/)/\[PATH\]/g;
705+
}
706+
700707
$config_command .= $value eq 1? "--$flag " : "--$flag $value ";
701708
}
702709

Diff for: modules/Bio/EnsEMBL/VEP/Constants.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ use warnings;
5353
use base qw(Exporter);
5454

5555
our $VEP_VERSION = 109;
56-
our $VEP_SUB_VERSION = 2;
56+
our $VEP_SUB_VERSION = 3;
5757

5858
our @EXPORT_OK = qw(
5959
@FLAG_FIELDS

0 commit comments

Comments
 (0)