Fixed: #61 || custom url can have more than one place

This commit is contained in:
Molunerfinn
2018-05-28 18:39:43 +08:00
parent d78de75c18
commit 0b5981a27d

View File

@@ -7,7 +7,7 @@ export default (style, url) => {
'HTML': `<img src="${url}"/>`,
'URL': url,
'UBB': `[IMG]${url}[/IMG]`,
'Custom': customLink.replace(/\$url/, url)
'Custom': customLink.replace(/\$url/g, url)
}
return tpl[style]
}