Agent Maturity Compass API - v1.2.0
    Preparing search index...

    Function containsCredential

    • True when text still contains secret.

      Exists so a test can assert the guarantee directly rather than by inspecting the placeholder, and so a future caller on a different path has one predicate to reach for instead of writing includes and getting the null case wrong.

      Parameters

      • text: string
      • secret: string | null

      Returns boolean