docx
    Preparing search index...

    Function longHexNumber

    • Validates a long hexadecimal number (4 bytes / 8 characters).

      Reference: ST_LongHexNumber 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 8-character hex string

      const hex = longHexNumber("ABCD1234"); // Valid