reverting title length amendment

main
Lee Hanken 2022-04-02 22:16:43 +01:00
parent e6730c0dda
commit 8e353c60b9
1 changed files with 7 additions and 6 deletions

View File

@ -10,12 +10,6 @@ module.exports = {
{
find: /\[([^\]]*)\]\(\/\/([^\)]*)\)/g,
replacement: '[$1](https://$2)'
},
{
find: /\n(.+)\n\-{64,}\n/ig,
replacement: (match, title) => {
return '\n'+title+'\n'+'-'.repeat(title.length)+'\n'
}
}
]
},
@ -32,7 +26,14 @@ module.exports = {
{
find: /\(https:\/\/upload.wikimedia.org\/wikipedia\/([^\/]+)\/thumb\/([^\)]+\..{3,4})\/[^\)]+\)/ig,
replacement: '(https://upload.wikimedia.org/wikipedia/$1/$2)'
},
{
find: /\n(.+)\n\-{32,}\n/ig,
replacement: (match, title) => {
return '\n'+title+'\n'+'-'.repeat(title.length)+'\n'
}
}
]
},
{