(node: SemanticNode)
| 582 | // A filter that names a route group's prefix selects exactly that group's |
| 583 | // routes, by the rule that built the group; any other text is a search. |
| 584 | const prefixed = (node: SemanticNode) => node.kind === 'route' && routePrefixOf(node.label).toLowerCase() === filter; |
| 585 | const routeGroup = options.view === 'routes' && options.groupRoutes && /^\/[^/\s]+$/.test(filter) && nodes.some(prefixed); |
| 586 | for (const node of nodes) { |
| 587 | if (routeGroup ? prefixed(node) |
no test coverage detected