import * as yup from "yup";

export const uuidValidator = yup
	.string()
	.notRequired()
	.matches(
		/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89ABab][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/,
		'Должен быть формат UUID: 8-4-4-4-12');