Skip to content

Commit

Permalink
add template redirect I saw in the wild today
Browse files Browse the repository at this point in the history
  • Loading branch information
NovemLinguae committed Aug 22, 2024
1 parent 7f9f82b commit c22102f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -1719,7 +1719,7 @@
}

// Add WikiProject banner shell, always. This is easier than maintaining 2 code paths: a code path for 1 banner and a code path for 2+ banners.
var banners = talkText.match( /{{(?:wikiproject|subst:wpafc\/article|football)[^}]+}}/gi );
var banners = talkText.match( /{{(?:wikiproject|subst:wpafc\/article|football|oka)[^}]+}}/gi );
// https://en.wikipedia.org/wiki/Special:WhatLinksHere?target=Template%3AWikiProject+banner+shell&namespace=&hidetrans=1&hidelinks=1
bannerShellDetectionRegex = new RegExp( '{{(?:' + bannerShellTemplates + ')', 'i' );
hasBannerShell = talkText.match( bannerShellDetectionRegex );
Expand Down

0 comments on commit c22102f

Please sign in to comment.