MCPcopy Create free account
hub / github.com/angular/angular / matcher

Function matcher

packages/router/test/apply_redirects.spec.ts:1406–1412  ·  view source on GitHub ↗
(s: any, g: any, r: any)

Source from the content-addressed store, hash-verified

1404 describe('custom path matchers', () => {
1405 it('should use custom path matcher', async () => {
1406 const matcher = (s: any, g: any, r: any) => {
1407 if (s[0].path === 'a') {
1408 return {consumed: s.slice(0, 2), posParams: {id: s[1]}};
1409 } else {
1410 return null;
1411 }
1412 };
1413
1414 await checkRedirect(
1415 [

Callers

nothing calls this directly

Calls 1

sliceMethod · 0.65

Tested by

no test coverage detected