apps/web: process/used-pl: add ( ) symbols to vin regex

This commit is contained in:
vchikalkin 2024-03-07 13:39:13 +03:00
parent 47d47a0bfd
commit f695835c61

View File

@ -3,7 +3,7 @@ import ValuesSchema from '@/config/schema/values';
import * as CRMTypes from '@/graphql/crm.types';
import { z } from 'zod';
const vinRegex = /^[\dA-HJ-NPR-Za-hj-npr-z]+$/u;
const vinRegex = /^[\dA-HJ-NPR-Za-hj-npr-z()]+$/u;
export function createValidationSchema({ apolloClient }: ValidationContext) {
return ValuesSchema.pick({