fix multi word titles in wikipedia

main
Lee Hanken 2022-04-02 15:34:38 +01:00
parent 62a73aeaad
commit fd6292cd88
1 changed files with 2 additions and 2 deletions

View File

@ -28,9 +28,9 @@ module.exports = {
replacement: '(https://upload.wikimedia.org/wikipedia/$1/$2)'
},
{
find: /\n\n([^\n]+)\n\-{40,}\n/ig,
find: /\n(.+)\n\-{64,}\n/ig,
replacement: (match, title) => {
return '\n\n'+title+'\n'+'-'.repeat(title.length)+'\n'
return '\n'+title+'\n'+'-'.repeat(title.length)+'\n'
}
}