InlineTags: Test for tags with -

This commit is contained in:
Vishesh Handa
2020-08-21 11:42:54 +02:00
parent 6078f7f7ef
commit 36fa1e3f80

View File

@ -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
}