mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-24 12:06:57 +03:00
UBERF-4449, UBERF-4343: Mention safari fix and double @ fix (#4135)
Signed-off-by: Maxim Karmatskikh <mkarmatskih@gmail.com>
This commit is contained in:
parent
c9e1d9fd51
commit
26f67810a6
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user