Fix(frontend): オートコンプリートが出るべき状況で出ないことがあるのを修正 (#13376)
* オートコンプリートが出るべき状況で出ないことがあるのを修正 * update CHANGELOG.md
This commit is contained in:
		
							parent
							
								
									1b1046bcdb
								
							
						
					
					
						commit
						034f47205e
					
				
					 2 changed files with 8 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -30,6 +30,11 @@
 | 
			
		|||
### Server
 | 
			
		||||
- Fix: nodeinfoにenableMcaptchaとenableTurnstileが無いのを修正
 | 
			
		||||
 | 
			
		||||
## 202x.x.x (unreleased)
 | 
			
		||||
 | 
			
		||||
### Client
 | 
			
		||||
- Fix: MFMのオートコンプリートが出るべき状況で出ないことがある問題を修正
 | 
			
		||||
 | 
			
		||||
## 2024.2.0
 | 
			
		||||
 | 
			
		||||
### Note
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -93,9 +93,11 @@ export class Autocomplete {
 | 
			
		|||
			return;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		const afterLastMfmParam = text.split(/\$\[[a-zA-Z]+/).pop();
 | 
			
		||||
 | 
			
		||||
		const isMention = mentionIndex !== -1;
 | 
			
		||||
		const isHashtag = hashtagIndex !== -1;
 | 
			
		||||
		const isMfmParam = mfmParamIndex !== -1 && text.split(/\$\[[a-zA-Z]+/).pop()?.includes('.');
 | 
			
		||||
		const isMfmParam = mfmParamIndex !== -1 && afterLastMfmParam?.includes('.') && !afterLastMfmParam?.includes(' ');
 | 
			
		||||
		const isMfmTag = mfmTagIndex !== -1 && !isMfmParam;
 | 
			
		||||
		const isEmoji = emojiIndex !== -1 && text.split(/:[a-z0-9_+\-]+:/).pop()!.includes(':');
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue