Built motion from commit 98555a2.|1.0.12
[motion.git] / server / models / voice_queue.js
index 8067431..ccc5333 100644 (file)
@@ -8,7 +8,10 @@ module.exports = function(sequelize, DataTypes) {
       unique: true,
       validate: {
         notEmpty: true,
-        is: /^[A-Za-z0-9\.\_]+$/i
+        is: {
+          args: /^[A-Za-z0-9._\+*!\-\[\]]+$/,
+          msg: 'The name is not valid!'
+        }
       },
     },
     musiconhold: {