bump version

This commit is contained in:
otsmr 2026-05-13 15:47:21 +02:00
parent dda3677907
commit 93ee6e60dd
3 changed files with 7 additions and 1 deletions

View file

@ -9,6 +9,9 @@ RegExp emojiRegex() => RegExp(
); );
bool isOneEmoji(String character) { bool isOneEmoji(String character) {
if (EmojiAnimationComp.animatedIcons.containsKey(character)) {
return true;
}
final matches = emojiRegex().allMatches(character); final matches = emojiRegex().allMatches(character);
if (matches.length == 1) { if (matches.length == 1) {
final match = matches.first; final match = matches.first;

View file

@ -3,7 +3,7 @@ description: "twonly, a privacy-friendly way to connect with friends through sec
publish_to: 'none' publish_to: 'none'
version: 0.2.10+119 version: 0.2.11+120
environment: environment:
sdk: ^3.11.0 sdk: ^3.11.0

View file

@ -13,6 +13,9 @@ void main() {
expect(isOneEmoji('😂'), true); expect(isOneEmoji('😂'), true);
expect(isOneEmoji('😂😂'), false); expect(isOneEmoji('😂😂'), false);
expect(isOneEmoji('Hallo 😂'), false); expect(isOneEmoji('Hallo 😂'), false);
for (final icon in EmojiAnimationComp.animatedIcons.keys) {
expect(isOneEmoji(icon), true);
}
}); });
test('test proof-of-work simple', () async { test('test proof-of-work simple', () async {