Skip to content

Commit 4f8031a

Browse files
committed
docs(selectors): point the locator leaf comment at normalizeType, not kernel
The retired-term spelling moved out of kernel with the window; the comment named the stale owner.
1 parent dd8b850 commit 4f8031a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

  • packages/selectors/src/internal

‎packages/selectors/src/internal/find.ts‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@ function matchRole(node: SnapshotNode, query: string): number {
143143
/**
144144
* The substring-scoring view of one role spelling: its last `.`-separated
145145
* segment. This is deliberately the RETIRED LOCATOR's leaf (`split('.').pop()`
146-
* only), not the kernel's retired-term spelling — the term also reduced a
147-
* trailing `/` segment, and mirroring that here would drop substring hits the
148-
* released locator kept (query `y/z` still scores 1 against kind `x.y/z`
149-
* today). The term's `/`-reduced spelling rides as the windowed exact alias
150-
* instead, so term/locator agreement comes from the exact side, and each
146+
* only), not the retired term spelling (`normalizeType`) — the term also
147+
* reduced a trailing `/` segment, and mirroring that here would drop substring
148+
* hits the released locator kept (query `y/z` still scores 1 against kind
149+
* `x.y/z` today). The term's `/`-reduced spelling rides as the windowed exact
150+
* alias instead, so term/locator agreement comes from the exact side, and each
151151
* surface's historical substring meaning is preserved. An AX-stripped query
152152
* (`link` against an `AXLink` node) likewise reaches the exact score through
153153
* the windowed alias, not through substring — the retired term already matched

0 commit comments

Comments
 (0)