mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-09 21:51:29 +08:00
removing all unnecessary reference links
This commit is contained in:
parent
189c80f19f
commit
dce8f59d2f
1 changed files with 2 additions and 0 deletions
|
|
@ -97,6 +97,8 @@ export async function getSection(language: string): Promise<Section> {
|
|||
sectionText = sectionText.replace(/<\/p><p>+/g, " ");
|
||||
sectionText = $("<div/>").html(sectionText).text();
|
||||
|
||||
sectionText = sectionText.replace(/\[\d+\]/gi, "");
|
||||
|
||||
sectionText = sectionText.replace(/\s+/g, " ");
|
||||
sectionText = sectionText.trim();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue