Exact matches aren't caught if str_word_count thinks it's two or more words

Created on 17 May 2014, over 10 years ago
Updated 6 April 2023, over 1 year ago

A client tested with "a$$hole" and the word was not caught. This is because str_word_count(...) was breaking it up into "a" and "hole". I think an exact match should also be included.

I don't know if this is a bug or a feature request.

I'm working on a patch now, it will be for the 7.x-2.0 branch though so it won't apply to the dev branch.

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States cravecode

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024