MCPcopy Index your code
hub / github.com/github/docs / convertLegacyVersionName

Function convertLegacyVersionName

middleware/api/search.js:68–72  ·  view source on GitHub ↗
(version)

Source from the content-addressed store, hash-verified

66}
67
68function convertLegacyVersionName(version) {
69 // In the olden days we used to use `?version=3.5&...` but we decided
70 // that's ambiguous and it should be `ghes-3.5` instead.
71 return legacyEnterpriseServerVersions[version] || version
72}
73
74router.get(
75 '/legacy',

Callers 1

search.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected