platform-bible-utils
    Preparing search index...

    Function isValidContextKey

    • Experimental

      Determines whether key is a structurally valid context key: at least two dot-separated segments, each consisting only of word characters (A-Z a-z 0-9 _) or hyphens. By convention the first segment should be the publishing extension's name (platform is reserved for the platform).

      Parameters

      • key: string

        The context key to check

      Returns boolean

      true if the key is structurally valid This function is unstable and may change or disappear without notice