Skip to content

Commit

Permalink
fix(model): correct spelling for provider name validation error message
Browse files Browse the repository at this point in the history
Signed-off-by: Hans Kristian Flaatten <hans.kristian.flaatten@dnt.no>
  • Loading branch information
Hans Kristian Flaatten committed Apr 25, 2016
1 parent deadaae commit b9884e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/app/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const userSchema = new Schema({
required: 'Brukernavn kan ikke være tomt',
validate: {
validator: v => /^[A-Z0-9]{3,}$/.test(v),
message: 'Brukernavn må består av store bokstaver og tall',
message: 'Brukernavn kan bare bestå av store bokstaver og tall uten mellomrom',
},
},
updated: { type: Date, default: Date.now },
Expand Down

0 comments on commit b9884e4

Please sign in to comment.