apply title width limit to all sites

main
Lee Hanken 2022-04-02 21:35:30 +01:00
parent fd6292cd88
commit d7de116d6e
1 changed files with 6 additions and 7 deletions

View File

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