Home
last modified time | relevance | path

Searched refs:stripGroupSegmentsFromPath (Results 1 – 14 of 14) sorted by relevance

/expo/packages/expo-router/build/
H A Dmatchers.js3 exports.stripInvisibleSegmentsFromPath = exports.stripGroupSegmentsFromPath = exports.removeFileSys…
45 function stripGroupSegmentsFromPath(path) { function
56 exports.stripGroupSegmentsFromPath = stripGroupSegmentsFromPath;
58 return stripGroupSegmentsFromPath(path).replace(/\/?index$/, '');
H A Dmatchers.d.ts12 export declare function stripGroupSegmentsFromPath(path: string): string;
H A Dmatchers.js.map1stripGroupSegmentsFromPath(path: string): string {\n return path\n .split('/')\n .reduce((a…
H A DgetRoutes.js83 return (0, matchers_1.stripGroupSegmentsFromPath)(route.replace(/\/index$/, ''));
H A DgetRoutes.js.map1stripGroupSegmentsFromPath,\n stripInvisibleSegmentsFromPath,\n} from './matchers';\nimport type …
/expo/packages/expo-router/src/__tests__/
H A Dmatchers.test.node.ts6 stripGroupSegmentsFromPath,
9 describe(stripGroupSegmentsFromPath, () => {
11 expect(stripGroupSegmentsFromPath('/[[...foobar]]/(foo)/bar/[bax]/(other)')).toBe(
14 expect(stripGroupSegmentsFromPath('(foo)/(bar)')).toBe('');
/expo/packages/expo-router/src/
H A Dmatchers.tsx42 export function stripGroupSegmentsFromPath(path: string): string {
55 return stripGroupSegmentsFromPath(path).replace(/\/?index$/, '');
H A DgetRoutes.ts9 stripGroupSegmentsFromPath,
118 return stripGroupSegmentsFromPath(route.replace(/\/index$/, ''));
/expo/packages/expo-router/src/link/
H A DuseLinkToPathProps.tsx6 import { stripGroupSegmentsFromPath } from '../matchers';
52 href: appendBasePath(stripGroupSegmentsFromPath(props.href) || '/'),
/expo/packages/expo-router/build/link/
H A DuseLinkToPathProps.js43 …href: (0, getPathFromState_1.appendBasePath)((0, matchers_1.stripGroupSegmentsFromPath)(props.href…
H A DuseLinkToPathProps.js.map1stripGroupSegmentsFromPath } from '../matchers';\n\nfunction eventShouldPreventDefault(\n e: Reac…
/expo/packages/expo-router/src/fork/
H A DgetStateFromPath.ts11 import { matchGroupName, stripGroupSegmentsFromPath } from '../matchers';
292 path: stripGroupSegmentsFromPath(value.path),
713 route.path = stripGroupSegmentsFromPath(path);
/expo/packages/expo-router/build/fork/
H A DgetStateFromPath.js232 path: (0, matchers_1.stripGroupSegmentsFromPath)(value.path),
511 route.path = (0, matchers_1.stripGroupSegmentsFromPath)(path);
H A DgetStateFromPath.js.map1stripGroupSegmentsFromPath } from '../matchers';\n\ntype Options<ParamList extends object> = {\n …