mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-12-21 15:59:48 +01:00
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:
@@ -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) => ({
|
||||
|
||||
Reference in New Issue
Block a user