File tree 2 files changed +8
-1
lines changed
packages/frontend/src/scripts
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 30
30
### Server
31
31
- Fix: nodeinfoにenableMcaptchaとenableTurnstileが無いのを修正
32
32
33
+ ## 202x.x.x (unreleased)
34
+
35
+ ### Client
36
+ - Fix: MFMのオートコンプリートが出るべき状況で出ないことがある問題を修正
37
+
33
38
## 2024.2.0
34
39
35
40
### Note
Original file line number Diff line number Diff line change @@ -93,9 +93,11 @@ export class Autocomplete {
93
93
return ;
94
94
}
95
95
96
+ const afterLastMfmParam = text . split ( / \$ \[ [ a - z A - Z ] + / ) . pop ( ) ;
97
+
96
98
const isMention = mentionIndex !== - 1 ;
97
99
const isHashtag = hashtagIndex !== - 1 ;
98
- const isMfmParam = mfmParamIndex !== - 1 && text . split ( / \$ \[ [ a - z A - Z ] + / ) . pop ( ) ?. includes ( '. ' ) ;
100
+ const isMfmParam = mfmParamIndex !== - 1 && afterLastMfmParam ?. includes ( '.' ) && ! afterLastMfmParam ?. includes ( ' ' ) ;
99
101
const isMfmTag = mfmTagIndex !== - 1 && ! isMfmParam ;
100
102
const isEmoji = emojiIndex !== - 1 && text . split ( / : [ a - z 0 - 9 _ + \- ] + : / ) . pop ( ) ! . includes ( ':' ) ;
101
103
You can’t perform that action at this time.
0 commit comments