Allow variation in format of Medium author domain
parent
69598b11ab
commit
495ebece3a
|
@ -46,10 +46,10 @@ module.exports = {
|
||||||
],
|
],
|
||||||
replace: [
|
replace: [
|
||||||
{
|
{
|
||||||
find: /\s*\[\s*!\[([^\]]+)\]\(([^\)]+)\)\s*\]\((https:\/\/medium.com\/@[^\?\)]*)\?[^\)]*\)\s*/g,
|
find: /\s*\[\s*!\[([^\]]+)\]\(([^\)]+)\)\s*\]\(([^\?\)]*)\?[^\)]*\)\s*/g,
|
||||||
replacement: '![$1]($2)\n[$1]($3)\n\n'
|
replacement: '![$1]($2)\n<$3>\n\n'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
domain: /(?:.*\.)?stackoverflow\.com/,
|
domain: /(?:.*\.)?stackoverflow\.com/,
|
||||||
|
|
Loading…
Reference in New Issue