mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-01 04:07:53 +08:00
InlineTags: Add a test for non-ascii words
This commit is contained in:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user