From 36fa1e3f80d69ae1391266004e68a071269fc47b Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Fri, 21 Aug 2020 11:42:54 +0200 Subject: [PATCH] InlineTags: Test for tags with - --- test/processors/inline_tags_test.dart | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/processors/inline_tags_test.dart b/test/processors/inline_tags_test.dart index 0aad1456..fd65eeee 100644 --- a/test/processors/inline_tags_test.dart +++ b/test/processors/inline_tags_test.dart @@ -39,6 +39,15 @@ void main() { expect(tags, {'fíre'}); }); + test('Tags with a -', () { + var body = "Hi #future-me. How are you?"; + + var p = InlineTagsProcessor(); + var tags = p.extractTags(body); + + expect(tags, {'future-me'}); + }); + // + should work as a prefix // @ should work as a prefix }