We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0c0bb0 commit cd825bcCopy full SHA for cd825bc
1 file changed
src/server/templates/go.ts
@@ -102,7 +102,13 @@ ${compositeTypes
102
function formatForGoTypeName(name: string): string {
103
return name
104
.split(/[^a-zA-Z0-9]/)
105
- .map((word) => `${word[0].toUpperCase()}${word.slice(1)}`)
+ .map((word) => {
106
+ if (word) {
107
+ return `${word[0].toUpperCase()}${word.slice(1)}`
108
+ } else {
109
+ return ''
110
+ }
111
+ })
112
.join('')
113
}
114
0 commit comments