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

Allow generating enums members with a digit as the first character #207

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

pdrvsky
Copy link

@pdrvsky pdrvsky commented Nov 9, 2023

Fixes issue described in #189. Simply add quotation marks around member name to be skipped by prettier if not necessary.

@fabien0102
Copy link
Owner

I like the idea, but let's be more specific on the escaping so it's there only when the string starts with a digit only, this will avoid a huge diff for other people updating this library 😉

@pdrvsky
Copy link
Author

pdrvsky commented Feb 20, 2024

@fabien0102 good catch. Fixed 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.

None yet

2 participants