From 952cd2320cab7f7db186513aa88e495d7ca95a63 Mon Sep 17 00:00:00 2001 From: kurilova Date: Mon, 20 Oct 2025 10:01:54 +0000 Subject: [PATCH] Change regular expression to satisfy the requirements --- .../pages/devices/components/device-form/device.validators.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui/src/app/pages/devices/components/device-form/device.validators.ts b/modules/ui/src/app/pages/devices/components/device-form/device.validators.ts index cb882743b..7f97e087a 100644 --- a/modules/ui/src/app/pages/devices/components/device-form/device.validators.ts +++ b/modules/ui/src/app/pages/devices/components/device-form/device.validators.ts @@ -31,7 +31,7 @@ export class DeviceValidators { ); readonly FIRMWARE_FORMAT_REGEXP = new RegExp( - "^([a-z0-9\\p{L}\\p{M}.',-_ ]{1,64})$", + '^(?=.*[^\\s])[\\p{L}\\p{M}0-9 .:;_-]{1,64}$', 'u' );