aboutsummaryrefslogtreecommitdiff
path: root/tests/test_utils.rs
Commit message (Collapse)AuthorAgeFilesLines
* properly fix the is_nsfw check this timeacdenisSK2018-07-021-2/+3
|
* Simplify utils::is_nsfwZeyla Hellyer2018-07-021-1/+1
|
* Fix 'nsfw-' case in utils::is_nsfwZeyla Hellyer2018-07-021-1/+1
| | | | | | In the utils::is_nsfw function, an input of 'nsfw-' shouldn't return true. Discord's (previous) NSFW detection classified 'nsfw' and anything starting with 'nsfw-' - but not including - as NSFW.
* Fix utils::is_nsfw string slicingZeyla Hellyer2018-07-021-0/+14
Removes string slicing on the input string, instead preferring to count chars and work off that information. Fixes channel names with unicode such as `général`. Fixes #342.