/**
 * Checks if the value follows the Timestamp format: 00:00:00.000
 * @param value - string to check
 * @returns boolean
 * @example timestampValidator('00:00:00.000')
 */
export const timestampValidator = (value: string): boolean => {
  return /^(?:2[0-3]|[01][0-9]):[0-5][0-9]:[0-5][0-9]\.[0-9][0-9][0-9]$/.test(
    value,
  );
};
