Fix api clean up global match

This commit is contained in:
Aaron Carlino 2019-11-15 13:14:33 +13:00
parent 7db3f56190
commit a567d620f1
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
const cleanApiTags = (html: string): string => {
const cleanApiTags = (html: string): string => {
return html.replace(
/\[api:(.*?)\][^(]/,
/\[api:(.*?)\][^(]/g,
(_, query) => `<a href="${query}">${query}</a> `
)
};