mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-01 12:23:44 +08:00
InlineTags: Test for tags with -
This commit is contained in:
@ -39,6 +39,15 @@ void main() {
|
|||||||
expect(tags, {'fíre'});
|
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
|
||||||
// @ should work as a prefix
|
// @ should work as a prefix
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user