diff --git a/src/components/settings/DeviceSetting.tsx b/src/components/settings/DeviceSetting.tsx index 094fe401..b1c6a5ed 100644 --- a/src/components/settings/DeviceSetting.tsx +++ b/src/components/settings/DeviceSetting.tsx @@ -71,6 +71,8 @@ export const DeviceSetting = () => { }} valueInfos={devices.map((device) => [device, { mutable: false, deletable: device !== DEFAULT_DEVICE }])} addItemButtonTitle={t('global.button.create')} + validateItem={(device) => device.length <= 16 && !!device.match(/^[a-zA-Z0-9\-_]+$/g)} + placeholder={t('settings.device.label.placeholder')} />