* Nodes whose name CONTAINS `substring` (LIKE scan, ASCII-case-insensitive, * shortest-first). The camel-infix lookup FTS can't do — `profileInfo` * inside `getProfileInfoV2` is one FTS token (#1196).
(
substring: string,
options: { kinds?: NodeKind[]; limit?: number; excludePrefix?: boolean } = {}
)
| 1288 | * inside `getProfileInfoV2` is one FTS token (#1196). |
| 1289 | */ |
| 1290 | getNodesByNameSubstring( |
| 1291 | substring: string, |
| 1292 | options: { kinds?: NodeKind[]; limit?: number; excludePrefix?: boolean } = {} |
| 1293 | ): Node[] { |
| 1294 | return this.queries |
| 1295 | .findNodesByNameSubstring(substring, options) |
| 1296 | .map((r) => r.node); |
| 1297 | } |
| 1298 | |
| 1299 | /** |
| 1300 | * Search nodes by text |
no test coverage detected