Documentation
    Preparing search index...

    Function assertIsValidCommand

    • Asserts that a UCAN command string is syntactically valid. If the command is invalid, it throws a descriptive error.

      Rules:

      • Commands MUST begin with a slash (/).
      • Commands MUST be lowercase.
      • A trailing slash MUST NOT be present, unless the command is exactly "/".
      • Segments MUST be separated by a slash (e.g., no empty segments like "//").

      Parameters

      • command: string

        The command string to validate.

      Returns void

      Does not return a value on success.

      If the command is syntactically invalid.