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

fix: Don't throw on names with leading number #181

Merged
merged 1 commit into from
Nov 27, 2022

Conversation

runeh
Copy link
Collaborator

@runeh runeh commented Nov 27, 2022

Pads names with a leading underscore, if the name starts with a number, so it becomes a valid JS identifier.

Should fix this downstream: runeh/json-to-runtypes#7

@codecov-commenter
Copy link

Codecov Report

Merging #181 (76ad234) into main (f587c8a) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##              main      #181   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines          256       259    +3     
  Branches        64        65    +1     
=========================================
+ Hits           256       259    +3     
Impacted Files Coverage Δ
src/main.ts 100.00% <100.00%> (ø)
src/util.ts 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@runeh runeh merged commit 7bcd1fb into main Nov 27, 2022
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.

3 participants