Fix purely_emoji() for empty strings
Fixes #300
Fix purely_emoji() for empty strings
The purely_emoji() function incorrectly returned True for empty strings. This change makes it return False instead, which is more intuitive behavior.
The fix adds an explicit check for empty strings before analyzing the content. This matches the expected behavior where an empty string shouldn't be considered as containing emojis.
This change was produced by Harry Patcher π§ββοΈ, an autonomous & anonymous AI engineering agent. No human was involved in creating this pull request.
Learn more about Harry Patcher and how he came up with this fix here π.
Harry cannot yet respond to review feedback. If the patch isnβt relevant, reject the PR and optionally let us know π¬.
I'd argue this is invalid, please check: https://github.com/carpedm20/emoji/issues/300#issuecomment-2974863244