We're updating the issue view to help you get more done.Learn more

Word count errors for empty content

This would never occur normally in production and thus is difficult to test, but if there's an old work in the database with content that the sanitizer completely strips out (say an old vid embed that's no longer valid), then you get empty text, and if you try to run the word counter on that, you get a 500 error. The desired behavior should be that if you ask for the word count of an empty string, it returns 0 and doesn't error.

Status

Assignee

elzj78 (Elz)

Reporter

elzj78 (Elz)