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

Function getVersionObjectFromPath

lib/path-utils.js:85–89  ·  view source on GitHub ↗
(href)

Source from the content-addressed store, hash-verified

83
84// Return the corresponding object for the version segment in a path
85export function getVersionObjectFromPath(href) {
86 const versionFromPath = getVersionStringFromPath(href)
87
88 return allVersions[versionFromPath]
89}
90
91// Return the product segment from the path
92export function getProductStringFromPath(href) {

Callers

nothing calls this directly

Calls 1

getVersionStringFromPathFunction · 0.85

Tested by

no test coverage detected