Skip to content
This repository was archived by the owner on Jun 18, 2024. It is now read-only.

Commit bbe82d0

Browse files
committed
Adding more characters for v1.1 email validation
Acknowledging http://davidcel.is/blog/2012/09/06/stop-validating-email-addresses-with- regex/ but mostly just wanted to make sure common addresses would validate
1 parent f612182 commit bbe82d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: v1.1/schema/vcard.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"hasEmail": {
2626
"title": "Email",
2727
"description": "Email address for the contact",
28-
"pattern": "^mailto:[\\w.-]+@[\\w.-]+\\.[\\w.-]+?$",
28+
"pattern": "^mailto:[\\w\\_\\~\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=\\:.-]+@[\\w.-]+\\.[\\w.-]+?$",
2929
"type": "string"
3030
}
3131
}

0 commit comments

Comments
 (0)