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

Allow multi-character padding #59

Merged
merged 2 commits into from
Sep 11, 2024
Merged

Allow multi-character padding #59

merged 2 commits into from
Sep 11, 2024

Conversation

rolfheij-sil
Copy link
Contributor

@rolfheij-sil rolfheij-sil commented Feb 16, 2024

Padding a string using the limit function would only work when the padString would be a single character. This PR fixes the padding code so that it also works for multiple character pad strings.

Resolves #60

@sallar sallar merged commit 80c3be3 into sallar:master Sep 11, 2024
@sallar
Copy link
Owner

sallar commented Sep 11, 2024

thanks. will release an update to npm soon

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.

Bug when providing a multi-character padString to the limit function
2 participants