habitica/test/api/v3/integration/user
Carlton McFarlane a53355872b
Add checks for profanity to profile updates (#12445)
* fix(profile): detect attempt to use banned words as display name. refactor profanity detection method.

* fix(profile): detect attempt to use banned words in blurb. further refactor profanity detection. inform the user their chat privileges have been revoked.

* refactor: add function to normalize Unicode strings and remove diacritics

* fix: improve regEx to prevent false partial matches e.g. 'hello' being recognised as banned words. porting fix from #12309

* fix(profile): refactor of profanity detection for #12445

* fix(profile): add test for swear words in new profile. fix existing tests

* fix(profile): show different error message for attempted slur use in username by new users.

* fix(profile): remove incorrect slur test

* fix(profile): fix slurs not caught at start of end of strings connect by punctuation

* tests(profile): fix tests for profanity checking

* remove exclusive test

* 11865 - update text for slur warnings

* 11865 - remove unused string from locale files

* 11865 - improve naming of banned word usage locale string

* 11865 - improve logic so that differentiated warnings are shown depending on whether a slur or other profanity has been used in a display name

* 11865 - construct slur regexes outside the validation function in which they are used

* 11865 - fix tests
2021-04-30 15:47:39 -05:00
..
auth Add checks for profanity to profile updates (#12445) 2021-04-30 15:47:39 -05:00
buy fix(test): force special spell purchasable for test 2021-04-09 15:41:20 -05:00
stats fix test lint 2019-10-08 20:45:38 +02:00
DELETE-user.test.js Sign in with Apple (#11793) 2020-04-08 18:44:30 +02:00
DELETE-user_messages.test.js fix test lint 2019-10-08 20:45:38 +02:00
DELETE-user_push_device.test.js fix test lint 2019-10-08 20:45:38 +02:00
GET-user.test.js fix: return full inbox on user-v3-api (#12146) 2020-05-02 21:48:16 +02:00
GET-user_anonymized.test.js API: Adding secret.text to the user-schema (#12121) 2020-05-02 19:59:05 +02:00
GET-user_inAppRewards.test.js fix test lint 2019-10-08 20:45:38 +02:00
GET-user_inventory_buy.test.js fix test lint 2019-10-08 20:45:38 +02:00
GET-user_toggle-pinned-item.test.js after merge 2019-10-28 23:15:45 +03:00
POST-move-pinned-item.js Hotfix: moving pinned items (#12935) 2021-01-25 17:40:18 -06:00
POST-user_block.test.js fix test lint 2019-10-08 20:45:38 +02:00
POST-user_change-class.test.js fix test lint 2019-10-08 20:45:38 +02:00
POST-user_class_cast_spellId.test.js Casting Chilling Frost and Stealth skill again will not be processed and return an error instead. Fixes #12361. (#12404) 2020-08-09 18:25:59 +02:00
POST-user_custom-day-start.test.js fix test lint 2019-10-08 20:45:38 +02:00
POST-user_disable-classes.test.js fix test lint 2019-10-08 20:45:38 +02:00
POST-user_equip_type_key.test.js fix test lint 2019-10-08 20:45:38 +02:00
POST-user_feed_pet_food.test.js Add Bulk Feed via query parameter (#12384) 2020-07-13 16:04:03 +02:00
POST-user_hatch_egg_hatchingPotion.test.js fix(pets): correct achievement logic 2019-10-23 08:21:51 -05:00
POST-user_mark_pms_read.test.js API v3 [WIP] (#6144) 2016-05-23 13:58:31 +02:00
POST-user_open_mystery_item.test.js fix test lint 2019-10-08 20:45:38 +02:00
POST-user_purchase.test.js fix test lint 2019-10-08 20:45:38 +02:00
POST-user_purchase_hourglass.test.js fix test lint 2019-10-08 20:45:38 +02:00
POST-user_push_device.test.js fix mongoose issue 2019-10-13 18:31:43 +02:00
POST-user_read_card.test.js fix test lint 2019-10-08 20:45:38 +02:00
POST-user_rebirth.test.js fix test lint 2019-10-08 20:45:38 +02:00
POST-user_release_both.test.js fix test lint 2019-10-08 20:45:38 +02:00
POST-user_release_mounts.test.js fix test lint 2019-10-08 20:45:38 +02:00
POST-user_release_pets.test.js fix test lint 2019-10-08 20:45:38 +02:00
POST-user_reroll.test.js fix test lint 2019-10-08 20:45:38 +02:00
POST-user_reset.test.js API: Adding secret.text to the user-schema (#12121) 2020-05-02 19:59:05 +02:00
POST-user_revive.test.js fix test lint 2019-10-08 20:45:38 +02:00
POST-user_sell.test.js fix test lint 2019-10-08 20:45:38 +02:00
POST-user_sleep.test.js fix test lint 2019-10-08 20:45:38 +02:00
POST-user_unlock.js Don't bill (subtract gems) multiple times for multiple unlock item set calls (#12116) 2020-04-24 16:16:34 +02:00
PUT-user.test.js Add checks for profanity to profile updates (#12445) 2021-04-30 15:47:39 -05:00