What is wrong
tools/figma-moonproto-contract-inspector/code.js counts ToBeConnected links with /ToBeConnected:ui\\./g. In a JavaScript regex literal that is a backslash after ui, then any character. Stored contract JSON contains ToBeConnected:ui. with a plain dot, so validateCurrentPage leaves toBeConnected at 0 and the panel shows that zero.
Link checks themselves use startsWith("ToBeConnected:ui.") and are unaffected.
Where
validateCurrentPage in tools/figma-moonproto-contract-inspector/code.js, the raw.match that increments toBeConnected. Seen at 5777091c.
This is a plugin bug, not a documentation fix. The docs lane is not changing the script.
What is wrong
tools/figma-moonproto-contract-inspector/code.jscountsToBeConnectedlinks with/ToBeConnected:ui\\./g. In a JavaScript regex literal that is a backslash afterui, then any character. Stored contract JSON containsToBeConnected:ui.with a plain dot, sovalidateCurrentPageleavestoBeConnectedat 0 and the panel shows that zero.Link checks themselves use
startsWith("ToBeConnected:ui.")and are unaffected.Where
validateCurrentPageintools/figma-moonproto-contract-inspector/code.js, theraw.matchthat incrementstoBeConnected. Seen at5777091c.This is a plugin bug, not a documentation fix. The docs lane is not changing the script.