From c0091016c5e44f94b9378a20733de71dbd7f5bfd Mon Sep 17 00:00:00 2001 From: Greg Price Date: Sat, 7 Dec 2024 00:39:36 -0800 Subject: [PATCH] nfc rename other from internal --- lib/model/emoji.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/model/emoji.dart b/lib/model/emoji.dart index e8a5f8247d..00dac73546 100644 --- a/lib/model/emoji.dart +++ b/lib/model/emoji.dart @@ -328,7 +328,7 @@ class EmojiStoreImpl with EmojiStore { /// (Rather vacuous for the moment; this structure will /// gain more substance in an upcoming commit.) enum EmojiMatchQuality { - exact, prefix, internal; + exact, prefix, other; /// The best possible quality of match. static const best = exact; @@ -408,10 +408,10 @@ class EmojiAutocompleteView extends AutocompleteView false, }; return switch (result.matchQuality) { - EmojiMatchQuality.exact => throw Error(), // handled above - EmojiMatchQuality.prefix => isPopular ? 1 : isCustomEmoji ? 3 : 4, + EmojiMatchQuality.exact => throw Error(), // handled above + EmojiMatchQuality.prefix => isPopular ? 1 : isCustomEmoji ? 3 : 4, // TODO word-boundary vs. not - EmojiMatchQuality.internal => isPopular ? 2 : isCustomEmoji ? 5 : 6, + EmojiMatchQuality.other => isPopular ? 2 : isCustomEmoji ? 5 : 6, }; } @@ -462,7 +462,7 @@ class EmojiAutocompleteQuery extends ComposeAutocompleteQuery { EmojiMatchQuality? _matchName(String emojiName) { if (emojiName == _adjusted) return EmojiMatchQuality.exact; if (emojiName.startsWith(_adjusted)) return EmojiMatchQuality.prefix; - if (_nameMatches(emojiName)) return EmojiMatchQuality.internal; + if (_nameMatches(emojiName)) return EmojiMatchQuality.other; return null; }