mirror of
https://github.com/vector-im/element-web.git
synced 2025-09-30 18:11:20 +02:00
remove unnecessary lookbehind and comment emoticon regex
Signed-off-by: macekj <macekj@umich.edu>
This commit is contained in:
parent
ba8d02a808
commit
2ffdfaef68
@ -47,7 +47,8 @@ import AutocompleteWrapperModel from "../../../editor/autocomplete";
|
||||
import DocumentPosition from "../../../editor/position";
|
||||
import {ICompletion} from "../../../autocomplete/Autocompleter";
|
||||
|
||||
const REGEX_EMOTICON_WHITESPACE = new RegExp('(?:^|\\s|(?<=^\\+))(' + EMOTICON_REGEX.source + ')\\s$');
|
||||
// matches emoticons which follow the start of a line, whitespace, or a plus at the start of a line
|
||||
const REGEX_EMOTICON_WHITESPACE = new RegExp('(?:^|\\s|^\\+)(' + EMOTICON_REGEX.source + ')\\s$');
|
||||
|
||||
const IS_MAC = navigator.platform.indexOf("Mac") !== -1;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user