Fix api clean up global match
This commit is contained in:
parent
7db3f56190
commit
a567d620f1
|
@ -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> `
|
||||
)
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue