diff --git a/mayacontrol.js b/mayacontrol.js index ab0903d..712a2e6 100644 --- a/mayacontrol.js +++ b/mayacontrol.js @@ -100,7 +100,7 @@ app.post('/setting', (req, res) => { ['mic', 'hiz', 'line', 'mic_hiz', 'mute'].includes(value) || Number.isInteger(value) ) || - !/[a-zA-Z]/.test(setting) + !/^[a-zA-Z]+$/.test(setting) ) { return res.status(400).send(); } diff --git a/package.json b/package.json index 89deac8..7e3d355 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "maya22-web-control", - "version": "1.3.3", + "version": "1.3.4", "description": "Control ESI Maya 22", "main": "mayacontrol.js", "scripts": {