Closed davutkara closed 6 years ago
Validator.js, the function is isAlphanumeric(str [, locale]).
I want to send tr_TR for locale parameter, but how can I set here
validate({ validator: 'isAlphanumeric', passIfEmpty: true, message: 'Name should contain alpha-numeric characters only' })
Have you tried using the arguments property? https://github.com/leepowellcouk/mongoose-validator#optionarguments---optional
arguments
Validator.js, the function is isAlphanumeric(str [, locale]).
I want to send tr_TR for locale parameter, but how can I set here
validate({ validator: 'isAlphanumeric', passIfEmpty: true, message: 'Name should contain alpha-numeric characters only' })