From 6078f7f7ef3eacba109ab154293744e0cfa043c3 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Fri, 21 Aug 2020 11:41:53 +0200 Subject: [PATCH] InlineTags: Add a test for non-ascii words --- test/processors/inline_tags_test.dart | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/test/processors/inline_tags_test.dart b/test/processors/inline_tags_test.dart index 3352802f..0aad1456 100644 --- a/test/processors/inline_tags_test.dart +++ b/test/processors/inline_tags_test.dart @@ -30,7 +30,15 @@ void main() { expect(tags, {'a', 'b'}); }); + test('Non Ascii tags', () { + var body = "Hi #fíre gone"; + + var p = InlineTagsProcessor(); + var tags = p.extractTags(body); + + expect(tags, {'fíre'}); + }); + // + should work as a prefix // @ should work as a prefix - // test for tags with non-ascii words }