-
Notifications
You must be signed in to change notification settings - Fork 227
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
Base output directory should strip non-word characters #274
Comments
ok, but who puts commas in the project name? |
I just did 😛 The tool doesn't give any indication of how the name is used. Is it just the directory name, or is it a human-readable name for the project? It doesn't tell you not to use punctuation, or warn you if you do, it just generates broken projects. This isn't great from a user experience perspective. |
@eed3si9n if I work on a pull request that includes word-only in normalize, would you be willing to accept it? |
Sure. Why not. |
@TimMoore Is this fix still in progress? If not, I can take it. |
@foxmk I haven't had a chance to start on it yet... please go ahead! 😄 |
The fix is as simple as changing this line from
to something like:
Using A thing to note btw is that It's not difficult. It's just a matter of deciding which transformation to use. In any case, this will be a breaking change that will affect the next version, so maybe it's better to do not "act" at all. |
I guess we could do something like |
It's a good idea. Maybe it's worth extracting it in an ad-hoc templatizing function? And what about non-retrocompatibility? |
For example:
I would have expected it to name the directory "hello-world" without the additional punctuation.
This could be fixed one of two ways:
I think that the second option makes sense for an intuitive understanding of what "normalize" ought to do, but it might be an unexpected change for some people.
I'm interested in people's thoughts, and I can make a pull request with whatever the consensus is.
The text was updated successfully, but these errors were encountered: