Content deleted Content added
Updating published sources: AccidentalLangLinkFixer: * Special case "<nowiki>[[Category:]]</nowiki>", which doesn't create a link either way. |
Updating published sources: AccidentalLangLinkFixer: * Some people like to put {{tag|noinclude|c}} on the same line as the last categoriy on Village pump pages. Don't count that as "accidental". |
||
Line 115:
# Fix any bad links
my $intxt=$tok->{'revisions'}[0]{'*'};
my ($outtxt,$nowiki)=$api->strip_regex(qr/^(?:\s|<!--.*?-->|<\/?(?:noinclude|includeonly|onlyinclude)>)*\[\[\s*(?:$llre|$clre)\s*:[^]]*\]\](?:\s|<!--.*?-->|<\/?(?:noinclude|includeonly|onlyinclude)>)*$/m, $intxt);
($outtxt,$nowiki)=$api->strip_regex(qr/\[\[\s*(?:$clre)\s*:\s*(?:\|[^]]*)?\]\]/, $outtxt, $nowiki);
($outtxt,$nowiki)=$api->strip_nowiki($outtxt,$nowiki);
|