docx
    Preparing search index...

    Function uCharHexNumber

    • Validates a single-byte hexadecimal number (1 byte / 2 characters).

      Reference: ST_UcharHexNumber in OOXML specification

      Parameters

      • val: string

        The hexadecimal string to validate

      Returns string

      The validated hexadecimal string

      Error if the value is not a valid 2-character hex string

      const hex = uCharHexNumber("FF"); // Valid