reverting title length amendment
parent
e6730c0dda
commit
8e353c60b9
|
@ -10,12 +10,6 @@ module.exports = {
|
||||||
{
|
{
|
||||||
find: /\[([^\]]*)\]\(\/\/([^\)]*)\)/g,
|
find: /\[([^\]]*)\]\(\/\/([^\)]*)\)/g,
|
||||||
replacement: '[$1](https://$2)'
|
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,
|
find: /\(https:\/\/upload.wikimedia.org\/wikipedia\/([^\/]+)\/thumb\/([^\)]+\..{3,4})\/[^\)]+\)/ig,
|
||||||
replacement: '(https://upload.wikimedia.org/wikipedia/$1/$2)'
|
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'
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue