Searched refs:getVersionFromPath (Results 1 – 4 of 4) sorted by relevance
8 let version = getVersionFromPath(path);12 function getVersionFromPath(path) { function44 let version = getVersionFromPath(changes[0]);
10 getVersionFromPath,66 describe(getVersionFromPath, () => {68 expect(getVersionFromPath('/versions/unversioned')).toBe('unversioned');72 expect(getVersionFromPath('/versions/latest/sdk/notifications')).toBe('latest');76 expect(getVersionFromPath('/versions/v44.0.0/react-native/view-props')).toBe('v44.0.0');80 expect(getVersionFromPath('/guides/monorepos/')).toBeNull();
28 const version = getVersionFromPath(router?.pathname ?? '');52 export function getVersionFromPath(path: string): PageApiVersionContextType['version'] | null {63 const version = getVersionFromPath(path);
63 redirectPath = `/versions/${getVersionFromPath(redirectPath)}/`;69 function getVersionFromPath(path: string) { function80 return supportedVersions.includes(getVersionFromPath(path));