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

SyntaxError when filename has invalid variable characters (&) #331

Closed
christopher-gibson opened this issue Aug 5, 2019 · 1 comment · Fixed by #332
Closed

SyntaxError when filename has invalid variable characters (&) #331

christopher-gibson opened this issue Aug 5, 2019 · 1 comment · Fixed by #332
Labels

Comments

@christopher-gibson
Copy link
Contributor

🐛 Bug Report

When a filename has a character that is invalid in variable names, it causes a syntax error.

image

To Reproduce

Add an ampersand (&) to a filename.

Expected behavior

Any invalid characters should be stripped (or replaced) when generating component names.

@gregberge
Copy link
Owner

Hello @christopher-gibson, could you submit a PR to fix it? The problem is in the function that transforms filename into component name.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants