Allow variation in format of Medium author domain

main
Lee Hanken 2024-07-12 13:09:46 +01:00
parent 69598b11ab
commit 495ebece3a
1 changed files with 3 additions and 3 deletions

View File

@ -46,10 +46,10 @@ module.exports = {
],
replace: [
{
find: /\s*\[\s*!\[([^\]]+)\]\(([^\)]+)\)\s*\]\((https:\/\/medium.com\/@[^\?\)]*)\?[^\)]*\)\s*/g,
replacement: '![$1]($2)\n[$1]($3)\n\n'
find: /\s*\[\s*!\[([^\]]+)\]\(([^\)]+)\)\s*\]\(([^\?\)]*)\?[^\)]*\)\s*/g,
replacement: '![$1]($2)\n<$3>\n\n'
}
]
]
},
{
domain: /(?:.*\.)?stackoverflow\.com/,