Content deleted Content added
delete <p style="Font family: Sans-Serif"> (publish.php) |
handle deleteDuplicateReferencesSection() edge case == References (bunch of whitespace here) == (publish.php) |
||
Line 327:
}
//
boldArticleTitle(wikicode, titleWithNamespaceAndSpaces) {
let titleToLookFor = titleWithNamespaceAndSpaces;
Line 672 ⟶ 671:
deleteDuplicateReferencesSection(wikicode) {
let matches = wikicode.match(/==
if ( matches !== null && matches.length > 1 ) {
// run regexes that are likely to delete the extra section
Line 680 ⟶ 679:
{{reflist}}`
, '');
let matches2 = attempt.match(/==
if ( matches2.length === 1 ) {
wikicode = attempt.trim();
wikicode = wikicode.replace(/==\s*References\s*==/gi, '== References ==');
}
}
|