mirror of
https://github.com/hcengineering/platform.git
synced 2024-12-24 20:13:00 +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
|
// If allowSpaces: true terminates on at least 2 whitespaces
|
||||||
const regexp = allowSpaces
|
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')
|
: new RegExp(`${prefix}(?:^)?${escapedChar}[^\\s${escapedChar}]*`, 'gm')
|
||||||
|
|
||||||
let text
|
let text
|
||||||
|
@ -12,8 +12,7 @@
|
|||||||
color: var(--theme-text-primary-color);
|
color: var(--theme-text-primary-color);
|
||||||
|
|
||||||
.suggestion {
|
.suggestion {
|
||||||
display: inline-flex;
|
padding-left: 0.25rem;
|
||||||
padding: 0 .25rem;
|
|
||||||
color: var(--theme-link-color);
|
color: var(--theme-link-color);
|
||||||
background-color: var(--theme-mention-bg-color);
|
background-color: var(--theme-mention-bg-color);
|
||||||
border-radius: .25rem;
|
border-radius: .25rem;
|
||||||
|
Loading…
Reference in New Issue
Block a user