WordPress-Android icon indicating copy to clipboard operation
WordPress-Android copied to clipboard

The `getWordCount` method should return 0 when given an empty string

Open maxme opened this issue 5 years ago • 1 comments

Currently it returns 1 when the string is empty. Word count precision is not super important, except for empty posts (we would like to count them).

https://github.com/wordpress-mobile/WordPress-Android/blob/78cfb8812c6fb0edb608bee18cfe59ea64cb47f1/WordPress/src/main/java/org/wordpress/android/util/analytics/AnalyticsUtils.java#L163-L167

maxme avatar Feb 19 '20 16:02 maxme

Thanks for reporting! 👍

dangermattic avatar Mar 19 '24 21:03 dangermattic