Refresher: ignore more types of redefined subroutines

This commit is contained in:
Pragmatic Software 2020-02-16 16:12:31 -08:00
parent f067723c4a
commit a63a5308d5
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ sub refresh {
local $SIG{__WARN__} = sub {
my $warning = shift;
warn $warning and return if $warning =~ /Can't undef active/;
warn $warning and return if $warning =~ /Subroutine \w+ redefined/;
warn $warning and return if $warning =~ /subroutine .* redefined/i;
$refresh_error = $warning;
$refresh_error =~ s/\s+Compilation failed in require at \/usr.*//;
$refresh_error =~ s/in \@INC.*/in \@INC/;