Skip to content

Commit 91d619b

Browse files
committed
fix(algolia): remove fallslashes from headline suffix
some of discord's route are terturned from the api with unnecessary fallslashes (see issue image) without understandable purpose, this commit removes these symbols, if present resolves #234
1 parent 2c4f30c commit 91d619b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/functions/algoliaResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export async function algoliaResponse(
4040
const docsBody = hit.url.includes('discord.com') ? await fetchDocsBody(hit.url) : null;
4141
const headlineSuffix =
4242
docsBody?.heading?.verb && docsBody?.heading.route
43-
? inlineCode(`${docsBody.heading.verb} ${docsBody.heading.route}`)
43+
? inlineCode(`${docsBody.heading.verb} ${docsBody.heading.route}`.replaceAll('\\', ''))
4444
: null;
4545

4646
const contentParts = [

0 commit comments

Comments
 (0)