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

[qustion] How to replace spaces and underscores with dashes? #102

Open
SamuelMiller opened this issue May 28, 2022 · 0 comments
Open

[qustion] How to replace spaces and underscores with dashes? #102

SamuelMiller opened this issue May 28, 2022 · 0 comments

Comments

@SamuelMiller
Copy link

Hello, I don't know much about regex and how to use it with the gulp rename plugin.

How would I write a function to replace all spaces and underscores in filenames with dashes so that a name like img_234 q50.jpg would be changed to img-234-q50.jpg.

Thanks, Sam

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

1 participant