Function: isValidLowercaseHexString()
isValidLowercaseHexString(
value:unknown,length:number):value is string
Defined in: shared/validation/validatorUtils.ts:470
Validates that a value is a lowercase hexadecimal string of an exact length.
Parametersโ
valueโ
unknown
Value to validate.
lengthโ
number
Required string length.
Returnsโ
value is string
True when the value is lowercase hex and matches the exact length.
Remarksโ
validator.isHexadecimal accepts both uppercase and lowercase characters.
For IDs that must be canonicalized (like correlation IDs), we enforce a
lowercase-only policy.