mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-02-07 15:19:15 +01:00
Fix search highlighting conflict with jsx code (#1886)
Replaces "<>", "</>" highlighting marks with "<|[[--" and "--]]|>" to avoid conflicts when highlighting jsx code.
This commit is contained in:
@@ -55,7 +55,6 @@ public final class LuceneHighlighter {
|
||||
fragments = keepWholeLine(value, fragments);
|
||||
}
|
||||
return Arrays.stream(fragments)
|
||||
.map(fragment -> fragment.replace(PRE_TAG, "<>").replace(POST_TAG, "</>"))
|
||||
.toArray(String[]::new);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user