diff --git a/src/utils/cleanApiTags.ts b/src/utils/cleanApiTags.ts index e50d2e7..253edc3 100644 --- a/src/utils/cleanApiTags.ts +++ b/src/utils/cleanApiTags.ts @@ -1,6 +1,6 @@ -const cleanApiTags = (html: string): string => { +const cleanApiTags = (html: string): string => { return html.replace( - /\[api:(.*?)\][^(]/, + /\[api:(.*?)\][^(]/g, (_, query) => `${query} ` ) };