mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	fix: autocomplete not showing up if dot in username
This commit is contained in:
		
							parent
							
								
									3ba54afc72
								
							
						
					
					
						commit
						0d23e7a278
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -97,7 +97,7 @@ export class Autocomplete {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		if (isMention) {
 | 
							if (isMention) {
 | 
				
			||||||
			const username = text.substring(mentionIndex + 1);
 | 
								const username = text.substring(mentionIndex + 1);
 | 
				
			||||||
			if (username !== '' && username.match(/^[a-zA-Z0-9_]+$/)) {
 | 
								if (username !== '' && username.match(/^[a-zA-Z0-9_.]+$/)) {
 | 
				
			||||||
				this.open('user', username);
 | 
									this.open('user', username);
 | 
				
			||||||
				opened = true;
 | 
									opened = true;
 | 
				
			||||||
			} else if (username === '') {
 | 
								} else if (username === '') {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue