Searched refs:stripGroupSegmentsFromPath (Results 1 – 14 of 14) sorted by relevance
| /expo/packages/expo-router/build/ |
| H A D | matchers.js | 3 exports.stripInvisibleSegmentsFromPath = exports.stripGroupSegmentsFromPath = exports.removeFileSys… 45 function stripGroupSegmentsFromPath(path) { function 56 exports.stripGroupSegmentsFromPath = stripGroupSegmentsFromPath; 58 return stripGroupSegmentsFromPath(path).replace(/\/?index$/, '');
|
| H A D | matchers.d.ts | 12 export declare function stripGroupSegmentsFromPath(path: string): string;
|
| H A D | matchers.js.map | 1 …stripGroupSegmentsFromPath(path: string): string {\n return path\n .split('/')\n .reduce((a…
|
| H A D | getRoutes.js | 83 return (0, matchers_1.stripGroupSegmentsFromPath)(route.replace(/\/index$/, ''));
|
| H A D | getRoutes.js.map | 1 …stripGroupSegmentsFromPath,\n stripInvisibleSegmentsFromPath,\n} from './matchers';\nimport type …
|
| /expo/packages/expo-router/src/__tests__/ |
| H A D | matchers.test.node.ts | 6 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 D | matchers.tsx | 42 export function stripGroupSegmentsFromPath(path: string): string { 55 return stripGroupSegmentsFromPath(path).replace(/\/?index$/, '');
|
| H A D | getRoutes.ts | 9 stripGroupSegmentsFromPath, 118 return stripGroupSegmentsFromPath(route.replace(/\/index$/, ''));
|
| /expo/packages/expo-router/src/link/ |
| H A D | useLinkToPathProps.tsx | 6 import { stripGroupSegmentsFromPath } from '../matchers'; 52 href: appendBasePath(stripGroupSegmentsFromPath(props.href) || '/'),
|
| /expo/packages/expo-router/build/link/ |
| H A D | useLinkToPathProps.js | 43 …href: (0, getPathFromState_1.appendBasePath)((0, matchers_1.stripGroupSegmentsFromPath)(props.href…
|
| H A D | useLinkToPathProps.js.map | 1 …stripGroupSegmentsFromPath } from '../matchers';\n\nfunction eventShouldPreventDefault(\n e: Reac…
|
| /expo/packages/expo-router/src/fork/ |
| H A D | getStateFromPath.ts | 11 import { matchGroupName, stripGroupSegmentsFromPath } from '../matchers'; 292 path: stripGroupSegmentsFromPath(value.path), 713 route.path = stripGroupSegmentsFromPath(path);
|
| /expo/packages/expo-router/build/fork/ |
| H A D | getStateFromPath.js | 232 path: (0, matchers_1.stripGroupSegmentsFromPath)(value.path), 511 route.path = (0, matchers_1.stripGroupSegmentsFromPath)(path);
|
| H A D | getStateFromPath.js.map | 1 …stripGroupSegmentsFromPath } from '../matchers';\n\ntype Options<ParamList extends object> = {\n …
|