git://repos.xcallymotion.com
/
motion.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Built motion from commit 6e01242c4.|1.0.20
[motion.git]
/
server
/
models
/
tools_trunk.js
diff --git
a/server/models/tools_trunk.js
b/server/models/tools_trunk.js
index
f9df7ff
..
982af8e
100644
(file)
--- a/
server/models/tools_trunk.js
+++ b/
server/models/tools_trunk.js
@@
-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: {