Changeset 210361 in webkit for trunk/Source/WebCore/html/EmailInputType.cpp
- Timestamp:
- Jan 5, 2017, 10:31:27 AM (9 years ago)
- File:
-
- 1 edited
-
trunk/Source/WebCore/html/EmailInputType.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/html/EmailInputType.cpp
r194819 r210361 35 35 namespace WebCore { 36 36 37 static const char emailPattern[] = 38 "[a-z0-9!#$%&'*+/=?^_`{|}~.-]+" // local part 39 "@" 40 "[a-z0-9-]+(\\.[a-z0-9-]+)*"; // domain part 37 // From https://html.spec.whatwg.org/#valid-e-mail-address. 38 static const char emailPattern[] = "^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$"; 41 39 42 40 static bool isValidEmailAddress(const String& address)
Note:
See TracChangeset
for help on using the changeset viewer.