UBERF-4449, UBERF-4343: Mention safari fix and double @ fix (#4135)

Signed-off-by: Maxim Karmatskikh <mkarmatskih@gmail.com>
This commit is contained in:
Maksim Karmatskikh 2023-12-04 18:53:51 +01:00 committed by GitHub
parent c9e1d9fd51
commit 26f67810a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -62,7 +62,7 @@ export function findSuggestionMatch (config: Trigger): SuggestionMatch {
// If allowSpaces: true terminates on at least 2 whitespaces
const regexp = allowSpaces
? new RegExp(`${prefix}${escapedChar}.*?(?=\\s{2}|$)`, 'gm')
? new RegExp(`${prefix}${escapedChar}[^${escapedChar}]*?(?=\\s{2}|$)`, 'gm')
: new RegExp(`${prefix}(?:^)?${escapedChar}[^\\s${escapedChar}]*`, 'gm')
let text

View File

@ -12,8 +12,7 @@
color: var(--theme-text-primary-color);
.suggestion {
display: inline-flex;
padding: 0 .25rem;
padding-left: 0.25rem;
color: var(--theme-link-color);
background-color: var(--theme-mention-bg-color);
border-radius: .25rem;