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

Content deleted Content added
AnomieBOT (talk | contribs)
Updating published sources: PERTableUpdater: * Don't crash if someone puts a bad regex in the title blacklist.
AnomieBOT (talk | contribs)
Updating published sources: General: * Add lots of backslashes to regexes, because new Perl whines about unescaped left-braces.
Line 126:
$re="(?-i:$re)" if($opts{'casesensitive'}//0);
 
$re=~s!(\{\{\s*ns\s*:\s*(.+?)\s*\}\})! replace_ns($api,$2) // $1 !ge;
 
# Validate each line, in case someone screws up the blacklist page