@@ -287,12 +287,12 @@ function jsonToGo(json, typename, flatten = true)
287
287
// Proper cases a string according to Go conventions
288
288
function toProperCase ( str )
289
289
{
290
- // https://github.com/golang/lint/blob/39d15d55e9777df34cdffde4f406ab27fd2e60c0 /lint.go#L695-L731
290
+ // https://github.com/golang/lint/blob/5614ed5bae6fb75893070bdc0996a68765fdd275 /lint.go#L771-L810
291
291
const commonInitialisms = [
292
- "API" , "ASCII" , "CPU" , "CSS" , "DNS" , "EOF" , "GUID" , "HTML" , "HTTP" ,
293
- "HTTPS" , "ID" , "IP" , "JSON" , "LHS" , "QPS" , "RAM" , "RHS" , "RPC" , "SLA" ,
294
- "SMTP" , "SSH" , "TCP" , "TLS" , "TTL" , "UDP" , "UI" , "UID" , "UUID" , "URI" ,
295
- "URL" , "UTF8" , "VM" , "XML" , "XSRF" , "XSS"
292
+ "ACL" , " API", "ASCII" , "CPU" , "CSS" , "DNS" , "EOF" , "GUID" , "HTML" , "HTTP" ,
293
+ "HTTPS" , "ID" , "IP" , "JSON" , "LHS" , "QPS" , "RAM" , "RHS" , "RPC" , "SLA" ,
294
+ "SMTP" , "SQL" , " SSH", "TCP" , "TLS" , "TTL" , "UDP" , "UI" , "UID" , "UUID" ,
295
+ "URI" , " URL", "UTF8" , "VM" , "XML" , "XMPP ", "XSRF" , "XSS"
296
296
] ;
297
297
298
298
return str . replace ( / ( ^ | [ ^ a - z A - Z ] ) ( [ a - z ] + ) / g, function ( unused , sep , frag )
@@ -320,4 +320,4 @@ if (typeof module != 'undefined') {
320
320
} else {
321
321
module . exports = jsonToGo
322
322
}
323
- }
323
+ }
0 commit comments