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

Failure with path that has many spaces #4

Closed
ronnycbo opened this issue Oct 19, 2020 · 2 comments
Closed

Failure with path that has many spaces #4

ronnycbo opened this issue Oct 19, 2020 · 2 comments

Comments

@ronnycbo
Copy link

I'm using MacOS, the path has many spaces, but the script only corrects 1 space, for the correction of all, I suggest changing the function:

.replace(" ", "\ ")

to

.replace(/ /g, "\ ")

@creativewax
Copy link

had the same issue, this sorts it out when there is multiple spaces across different folder

.replace(/\s+/g, '\ ')

@tmackness
Copy link
Owner

I have now updated this

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

3 participants