1
0
Derivar 0

remove unnecessary lookbehind and comment emoticon regex

Signed-off-by: macekj <macekj@umich.edu>
pull/21833/head
macekj 2020-11-24 11:42:53 -05:00
ascendente ba8d02a808
cometimento 2ffdfaef68
1 ficheiros modificados com 2 adições e 1 eliminações

Ver ficheiro

@ -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;