From 27eb56aee858211c7abc0f957eb37365418b264e Mon Sep 17 00:00:00 2001 From: proddy Date: Sat, 20 Jul 2024 11:44:31 +0200 Subject: [PATCH] scheduler command max 300 --- interface/src/project/validators.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/interface/src/project/validators.ts b/interface/src/project/validators.ts index 8fbf50daf..d1b5a4795 100644 --- a/interface/src/project/validators.ts +++ b/interface/src/project/validators.ts @@ -308,7 +308,7 @@ export const schedulerItemValidation = ( { type: 'string', pattern: /^[a-zA-Z0-9_\\.]{0,19}$/, - message: "Must be <20 characters: alpha numeric, '_' or '.'" + message: "Must be <20 characters: alphanumeric, '_' or '.'" }, ...[uniqueNameValidator(schedule, scheduleItem.o_name)] ], @@ -317,8 +317,8 @@ export const schedulerItemValidation = ( { type: 'string', min: 1, - max: 64, - message: 'Command must be 1-64 characters' + max: 300, + message: 'Command must be 1-300 characters' } ] }); @@ -350,7 +350,7 @@ export const entityItemValidation = (entity: EntityItem[], entityItem: EntityIte { type: 'string', pattern: /^[a-zA-Z0-9_\\.]{1,19}$/, - message: "Must be <20 characters: alpha numeric, '_' or '.'" + message: "Must be <20 characters: alphanumeric, '_' or '.'" }, ...[uniqueCustomNameValidator(entity, entityItem.o_name)] ], @@ -404,7 +404,7 @@ export const temperatureSensorItemValidation = (sensors: TemperatureSensor[]) => { type: 'string', pattern: /^[a-zA-Z0-9_\\.]{0,19}$/, - message: "Must be <20 characters: alpha numeric, '_' or '.'" + message: "Must be <20 characters: alphanumeric, '_' or '.'" }, ...[uniqueTemperatureNameValidator(sensors)] ] @@ -444,7 +444,7 @@ export const analogSensorItemValidation = ( { type: 'string', pattern: /^[a-zA-Z0-9_\\.]{0,19}$/, - message: "Must be <20 characters: alpha numeric, '_' or '.'" + message: "Must be <20 characters: alphanumeric, '_' or '.'" }, ...[uniqueAnalogNameValidator(sensors)] ],