mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	[API] Improve inteligence
This commit is contained in:
		
							parent
							
								
									011742fdc9
								
							
						
					
					
						commit
						e7a7ebc1af
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -42,7 +42,7 @@ async function byNative(res, rej, me, query, offset, max) {
 | 
			
		|||
	const users = await User
 | 
			
		||||
		.find({
 | 
			
		||||
			$or: [{
 | 
			
		||||
				username_lower: new RegExp(escapedQuery.toLowerCase())
 | 
			
		||||
				username_lower: new RegExp(escapedQuery.replace('@', '').toLowerCase())
 | 
			
		||||
			}, {
 | 
			
		||||
				name: new RegExp(escapedQuery)
 | 
			
		||||
			}]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue