mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-29 18:38:36 +08:00
InlineTags: Test for tags with -
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user