Skip to content

figma inspector ToBeConnected counter never matches #720

Description

@kirillDevPro

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions