(text: string)
| 55 | } |
| 56 | |
| 57 | export function isCleanText(text: string) { |
| 58 | const lowercased = text.toLowerCase(); |
| 59 | return !profanities.some(badWord => lowercased.includes(badWord)); |
| 60 | } |
| 61 | |
| 62 | function getRawConfigHash(config: any) { |
| 63 | return encodeBuffer(utils.getBinaryHash(JSON.stringify(config), FILE_HASH_VERSION)); |
no outgoing calls
no test coverage detected