User:AnomieBOT/source/tasks/EnDashRedirectCreator.pm: Difference between revisions

Content deleted Content added
AnomieBOT (talk | contribs)
Updating published sources: EnDashRedirectCreator: * Add a skip list so certain titles that shouldn't be created won't spam the logs. * Don't even try to resolve redirects for "Template:Editnotices/*". * Fix invocation of {{tl|R from modification}}, pa...
AnomieBOT (talk | contribs)
Updating published sources: EnDashRedirectCreator: * Fix bad regex.
Line 201:
}
 
my $redirNs = ( $redir =~ /^(.[^:]+):/ && exists( $ns{$1} ) ? $ns{$1} : 0 );
my $targetNs = ( $target =~ /^(.[^:]+):/ && exists( $ns{$1} ) ? $ns{$1} : 0 );
 
if ( $redirNs == 0 && !( $crossNsOk{$targetNs} // 0 ) ) {