File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -697,7 +697,7 @@ export function normalizeShortNameCompletionQuery(query: string): string {
697697 * Emojify
698698 */
699699
700- function isSafeEmojifyEmoji ( value : string ) : value is EmojiVariantValue {
700+ export function isSafeEmojifyEmoji ( value : string ) : value is EmojiVariantValue {
701701 return isEmojiVariantValue ( value ) && ! isEmojiVariantValueNonQualified ( value ) ;
702702}
703703
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ import type { AciString } from '../types/ServiceId.std.js';
2222import {
2323 getEmojiVariantByKey ,
2424 getEmojiVariantKeyByValue ,
25- isEmojiVariantValue ,
25+ isSafeEmojifyEmoji ,
2626} from '../components/fun/data/emojis.std.js' ;
2727
2828export type Matcher = (
@@ -466,7 +466,7 @@ export const insertEmojiOps = (
466466 // eslint-disable-next-line no-cond-assign
467467 while ( ( match = re . exec ( text ) ) ) {
468468 const [ emojiMatch ] = match ;
469- if ( isEmojiVariantValue ( emojiMatch ) ) {
469+ if ( isSafeEmojifyEmoji ( emojiMatch ) ) {
470470 const variantKey = getEmojiVariantKeyByValue ( emojiMatch ) ;
471471 const variant = getEmojiVariantByKey ( variantKey ) ;
472472
You can’t perform that action at this time.
0 commit comments