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

Preview component maximum text length - RangeError: Invalid count value #14

Open
ScholliYT opened this issue Jun 22, 2023 · 1 comment

Comments

@ScholliYT
Copy link

Putting a text longer than 150 chars in the Preview component (which is not recommended) results in a RangeError: Invalid count value. The error could be more descriptive in the sense that a length of 90 is recommended and 150 is the maximum.

return whiteSpaceCodes.repeat(150 - text.length);

@cmjoseph07
Copy link

@ScholliYT

Hey man, I totally agree that a better error message could be returned and I got this updated in a forked community run repo called Svelty-email. if you would like to check it out.

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

No branches or pull requests

2 participants