diff --git a/frontend/src/scripts/test/wikipedia.ts b/frontend/src/scripts/test/wikipedia.ts index ea0c25177..e581da69d 100644 --- a/frontend/src/scripts/test/wikipedia.ts +++ b/frontend/src/scripts/test/wikipedia.ts @@ -97,6 +97,8 @@ export async function getSection(language: string): Promise
{ sectionText = sectionText.replace(/<\/p>

+/g, " "); sectionText = $("

").html(sectionText).text(); + sectionText = sectionText.replace(/\[\d+\]/gi, ""); + sectionText = sectionText.replace(/\s+/g, " "); sectionText = sectionText.trim();