mirror of
				https://github.com/cinnyapp/cinny.git
				synced 2025-11-04 14:30:29 +03:00 
			
		
		
		
	Fix additional spam string matching (#2339)
This commit is contained in:
		
							parent
							
								
									c51ba9670e
								
							
						
					
					
						commit
						83057ebbd4
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -1,7 +1,7 @@
 | 
			
		|||
import * as badWords from 'badwords-list';
 | 
			
		||||
import { sanitizeForRegex } from '../utils/regex';
 | 
			
		||||
 | 
			
		||||
const additionalBadWords: string[] = ['Torture', 'T0rture'];
 | 
			
		||||
const additionalBadWords: string[] = ['torture', 't0rture'];
 | 
			
		||||
 | 
			
		||||
const fullBadWordList = additionalBadWords.concat(
 | 
			
		||||
  badWords.array.filter((word) => !additionalBadWords.includes(word))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue