File tree Expand file tree Collapse file tree
packages/selectors/src/internal Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments