User:Novem Linguae/Scripts/DraftCleaner.js: Difference between revisions

Content deleted Content added
add deleteWeirdUnicodeCharacters() (publish.php)
fix edge case in convertVeryLongHeadingToParagraph() (publish.php)
Line 535:
for ( let line of lines ) {
i++;
if ( line.length > 150 && line.match(/^==.*==$/gm) && ! line.match(/<ref/) ) {
output += line.replace(/^={1,}\s*(.*?)\s*={1,}$/m, '$1');
} else {