Skip to content

chore: fix for replacing all spaces in a string #205

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

Open
wants to merge 1 commit into
base: eclipse-apps
Choose a base branch
from

Conversation

ursulabauer
Copy link

I’ve updated the function to ensure that all spaces in a string are replaced, not just the first one.

Previously, the regular expression was only targeting the first space, but now, with the global flag (/ /g), it correctly replaces every space in the string.

This change makes the function work as expected for strings with multiple spaces.

Copy link

vercel bot commented Feb 10, 2025

@ursulabauer is attempting to deploy a commit to the Eclipse Labs Team on Vercel.

A member of the Team first needs to authorize it.

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