fix multi word titles in wikipedia
parent
62a73aeaad
commit
fd6292cd88
|
@ -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'
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue