Built motion from commit 6e01242c4.|1.0.20
[motion.git] / server / models / tools_trunk.js
index f9df7ff..982af8e 100644 (file)
@@ -9,7 +9,10 @@ module.exports = function(sequelize, DataTypes) {
       primaryKey: true,
       validate: {
         notEmpty: true,
-        is: /^[A-Za-z0-9\.\_]+$/i
+        is: {
+          args: /^[A-Za-z0-9\.\_]+$/i,
+          msg: 'The name is not valid!'
+        }
       }
     },
     type: {