summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-12-02 06:53:57 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-12-02 06:53:57 +0900
commitc58027e5217c72a6c936aa27b4b02f0ff7f5bbda (patch)
tree4d80ef1e8b57207360759d5682b045f1b2e34e33 /test
parentMerge branch 'develop' of https://github.com/syuilo/misskey into develop (diff)
downloadsharkey-c58027e5217c72a6c936aa27b4b02f0ff7f5bbda.tar.gz
sharkey-c58027e5217c72a6c936aa27b4b02f0ff7f5bbda.tar.bz2
sharkey-c58027e5217c72a6c936aa27b4b02f0ff7f5bbda.zip
[MFM] Better hashtag detection
Diffstat (limited to 'test')
-rw-r--r--test/mfm.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/mfm.ts b/test/mfm.ts
index bfbf595f1c..eeb92aa2af 100644
--- a/test/mfm.ts
+++ b/test/mfm.ts
@@ -187,9 +187,9 @@ describe('Text', () => {
});
it('with text (zenkaku)', () => {
- const tokens = analyze('こんにちは #世界');
+ const tokens = analyze('こんにちは#世界');
assert.deepEqual([
- text('こんにちは '),
+ text('こんにちは'),
node('hashtag', { hashtag: '世界' })
], tokens);
});