diff --git a/bundles/org.openhab.ui/web/src/components/item/item-mixin.js b/bundles/org.openhab.ui/web/src/components/item/item-mixin.js index f9f68f973..54242daf6 100644 --- a/bundles/org.openhab.ui/web/src/components/item/item-mixin.js +++ b/bundles/org.openhab.ui/web/src/components/item/item-mixin.js @@ -44,7 +44,7 @@ export default { * @returns {string} The error message if the name is invalid, or an empty string if the name is valid. */ validateItemName (name) { - if (!/^[A-Za-z][A-Za-z0-9_]*$/.test(name)) { + if (!/^[A-Za-z_][A-Za-z0-9_]*$/.test(name)) { return 'Required. Must not start with a number. A-Z,a-z,0-9,_ only' } else if (this.items && this.items.some(item => item.name === name)) { return 'An Item with this name already exists'