Fix highlighting for search results which were not marked properly

Co-authored-by: Eduard Heimbuch<eduard.heimbuch@cloudogu.com>
Co-authored-by: Thomas Zerr<thomas.zerr@cloudogu.com>
Pushed-by: Thomas Zerr<thomas.zerr@cloudogu.com>
Pushed-by: Eduard Heimbuch<eduard.heimbuch@cloudogu.com>
This commit is contained in:
Eduard Heimbuch
2024-06-24 10:54:37 +02:00
parent b98cdeb28d
commit 79326f3c1b
3 changed files with 9 additions and 9 deletions

View File

@@ -133,8 +133,6 @@ const stripAndReplace = (value: string, { start: preTag, end: postTag, wrapper:
}
}
result.sort((a, b) => b.length - a.length);
return {
strippedValue,
replacements: result.map<Replacement>((textToReplace) => ({