Highlight multiple words in search result snippet

This commit is contained in:
trevor-signal 2023-06-21 12:35:48 -04:00 committed by GitHub
parent 83c1acedd8
commit 0afe124c68
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 59 additions and 16 deletions

6
ts/util/search.ts Normal file
View file

@ -0,0 +1,6 @@
// Copyright 2023 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
export const SNIPPET_LEFT_PLACEHOLDER = '<<left>>';
export const SNIPPET_RIGHT_PLACEHOLDER = '<<right>>';
export const SNIPPET_TRUNCATION_PLACEHOLDER = '<<truncation>>';