generated from 8iq/nodejs-hackathon-boilerplate-starter-kit
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(condo): DOMA-7635 updated bad words exclusions (#4453)
* feat(condo): DOMA-7635 updated exclusions filter to check for bad words - added support masks. Added new words to exclusion list * refactor(condo): DOMA-7635 reused bad-words-next for bad words exclusions * chore(condo): DOMA-7635 removed comments * fix(condo): DOMA-7635 fixed import
- Loading branch information
Showing
5 changed files
with
38 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
const BAD_WORDS_EXCLUSIONS = [ | ||
'дебиторск*', | ||
'ипу', | ||
'*канал*', | ||
'муниципал*', | ||
'потребител*', | ||
] | ||
|
||
const BAD_WORDS_EXCLUSIONS_CONFIG = { | ||
id: 'exclusions', | ||
words: BAD_WORDS_EXCLUSIONS, | ||
lookalike: {}, | ||
} | ||
|
||
module.exports = { | ||
BAD_WORDS_EXCLUSIONS_CONFIG, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
apps/condo/domains/news/utils/serverSchema/badWords.spec.js
This file was deleted.
Oops, something went wrong.