Home
last modified time | relevance | path

Searched refs:matchGroupName (Results 1 – 18 of 18) sorted by relevance

/expo/packages/expo-router/src/__tests__/
H A Dmatchers.test.node.ts5 matchGroupName,
18 describe(matchGroupName, () => {
20 expect(matchGroupName('[[...foobar]]')).toEqual(undefined);
21 expect(matchGroupName('[[foobar]]')).toEqual(undefined);
22 expect(matchGroupName('[...foobar]')).toEqual(undefined);
23 expect(matchGroupName('[foobar]')).toEqual(undefined);
24 expect(matchGroupName('(foobar)')).toEqual('foobar');
25 expect(matchGroupName('(foo,bar)')).toEqual('foo,bar');
26 expect(matchGroupName('((foobar))')).toEqual('(foobar)');
27 expect(matchGroupName('(...foobar)')).toEqual('...foobar');
[all …]
/expo/packages/expo-router/build/
H A Dmatchers.js3 …ions = exports.getContextKey = exports.getNameFromFilePath = exports.matchGroupName = exports.matc…
17 function matchGroupName(name) { function
20 exports.matchGroupName = matchGroupName;
49 if (matchGroupName(v) == null) {
H A DsortRoutes.js28 const aIndex = a.route === 'index' || (0, matchers_1.matchGroupName)(a.route) != null;
29 const bIndex = b.route === 'index' || (0, matchers_1.matchGroupName)(b.route) != null;
H A Dmatchers.d.ts6 export declare function matchGroupName(name: string): string | undefined;
H A DsortRoutes.js.map1matchGroupName } from './matchers';\n\nexport function sortRoutes(a: RouteNode, b: RouteNode): num…
H A DgetRoutes.js97 const groupName = (0, matchers_1.matchGroupName)(node.route);
165 const match = (0, matchers_1.matchGroupName)(route);
380 if ((0, matchers_1.matchGroupName)(route.route)) {
H A Dmatchers.js.map1matchGroupName(name: string): string | undefined {\n return name.match(/^(?:[^\\\\(\\\\)])*?\\(([…
H A DgetRoutes.js.map1matchGroupName,\n removeSupportedExtensions,\n stripGroupSegmentsFromPath,\n stripInvisibleSegm…
/expo/packages/expo-router/src/
H A DsortRoutes.ts2 import { matchGroupName } from './matchers';
28 const aIndex = a.route === 'index' || matchGroupName(a.route) != null;
29 const bIndex = b.route === 'index' || matchGroupName(b.route) != null;
H A Dmatchers.tsx14 export function matchGroupName(name: string): string | undefined {
46 if (matchGroupName(v) == null) {
H A DgetRoutes.ts7 matchGroupName,
134 const groupName = matchGroupName(node.route);
224 const match = matchGroupName(route);
482 if (matchGroupName(route.route)) {
/expo/packages/expo-router/src/fork/
H A DgetStateFromPath.ts11 import { matchGroupName, stripGroupSegmentsFromPath } from '../matchers';
214 .filter((part) => matchGroupName(part) == null);
219 const bParts = b.pattern.split('/').filter((part) => matchGroupName(part) == null);
574 if (matchGroupName(it) != null) {
H A DgetPathFromState.ts6 import { matchDeepDynamicRouteName, matchDynamicName, matchGroupName } from '../matchers';
70 matchGroupName(segment) != null ||
474 if (!preserveGroups && matchGroupName(p) != null) {
/expo/packages/@expo/cli/src/export/
H A DexportStaticAsync.ts67 function matchGroupName(name: string): string | undefined { function
288 if (matchGroupName(head)) {
/expo/packages/expo-router/build/fork/
H A DgetStateFromPath.js165 .filter((part) => (0, matchers_1.matchGroupName)(part) == null);
169 …const bParts = b.pattern.split('/').filter((part) => (0, matchers_1.matchGroupName)(part) == null);
421 if ((0, matchers_1.matchGroupName)(it) != null) {
H A DgetPathFromState.js67 (0, matchers_1.matchGroupName)(segment) != null ||
364 if (!preserveGroups && (0, matchers_1.matchGroupName)(p) != null) {
H A DgetStateFromPath.js.map1matchGroupName, stripGroupSegmentsFromPath } from '../matchers';\n\ntype Options<ParamList extends…
H A DgetPathFromState.js.map1matchGroupName } from '../matchers';\n\ntype Options<ParamList extends object> = {\n initialRoute…