shurcooL / graphql

Package graphql provides a GraphQL client implementation.
MIT License
709 stars 282 forks source link

Properly split words with numbers #121

Open bderrly opened 7 months ago

bderrly commented 7 months ago

If a field name has numbers then some new rules need to be added. I ran into a case where FdrS3FileSizeMax split the words into {"Fdr", "S3File", "Size", "Max"} which results in a subsequent call to ToMixedCaps() to return FdrS3fileSizeMax (notice the small 'f' after 'S3').