📜  validator_isEmail() - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:21.803000             🧑  作者: Mango

代码示例1
app.post('/create-user', [
  // normalizeEmail() and toDate() are sanitizers, also available in the Sanitization Chain
  check('email').normalizeEmail().isEmail(),
  check('date-of-birth').isISO8601().toDate(),
]);