diff --git a/src/utils/cleanApiTags.ts b/src/utils/cleanApiTags.ts index 4ba00b5..777e96c 100644 --- a/src/utils/cleanApiTags.ts +++ b/src/utils/cleanApiTags.ts @@ -2,10 +2,11 @@ * Completes the shorthand [api:Something] syntax to [api:Something](Something) * @param html */ -const cleanApiTags = (html: string): string => { - return html.replace( +const cleanApiTags = (html: string): string => { + return html + .replace( /\[api:(.*?)\]([^(])/g, - (_, query, next) => `${query}${next}` + (_, query, next) => `${query}${next}` ) };