Skip to content

Commit

Permalink
fix prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
CATCH\dengy committed Sep 28, 2019
1 parent 73a6a23 commit c9a206a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion myapp/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ router.post('/',
.withMessage('您输入的不是邮箱'),
check('phone')
.isLength({ min: 1 })
.withMessage('请输入你的邮箱')
.withMessage('请输入你的电话')
.custom(value => {
console.log(value);
if (!/^\d{8}$/.test(value) || value.charAt(0) !== value.charAt(7)) {
Expand Down

0 comments on commit c9a206a

Please sign in to comment.