mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-22 15:50:32 +00:00
fix: contacts URL validation rule.
This commit is contained in:
@@ -15,7 +15,7 @@ export default class ContactsController extends BaseController {
|
|||||||
check('display_name').exists().trim().escape(),
|
check('display_name').exists().trim().escape(),
|
||||||
|
|
||||||
check('email').optional({ nullable: true }).normalizeEmail().isEmail(),
|
check('email').optional({ nullable: true }).normalizeEmail().isEmail(),
|
||||||
check('website').optional().trim().escape(),
|
check('website').optional().trim().isURL(),
|
||||||
check('work_phone').optional().trim().escape(),
|
check('work_phone').optional().trim().escape(),
|
||||||
check('personal_phone').optional().trim().escape(),
|
check('personal_phone').optional().trim().escape(),
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user