Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support default plaintext in msg.format #130

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

LokiMidgard
Copy link

To format the text plaintext, the configuration uses an empty string.

However passing an empty string to msg.format fails the check and yields Message format is set to be passed in via msg.format but was not defined, since the empty string evaluates to false in JavaScript.

Instead this now checks if the key is defined on the object wich allows to use values that JavaScript normally evaluates to false (like empty string).

If I miss understood how it is supposed to work feel free to close this pull request.

@LokiMidgard LokiMidgard changed the base branch from master to dev January 9, 2025 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant