← Back to index
|
Original Bugzilla link
Bug 16036 – std.net.isemail - isEmail reurns "valid: false" for any email with EmailStatusCode.none (default)
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2016-05-17T16:32:00Z
Last change time
2016-05-18T17:26:04Z
Assigned to
nobody
Creator
dlang-bugzilla
Comments
Comment #0
by dlang-bugzilla — 2016-05-17T16:32:22Z
Essentially: ////////////////// test.d ///////////////// import std.net.isemail, std.stdio; void main() { writeln(isEmail("
[email protected]
")); } /////////////////////////////////////////// This prints: EmailStatus { valid: false localPart: test.test domainPart: iana.org statusCode: error } This contradicts the documentation (and just not useful).
Comment #1
by doob — 2016-05-17T19:57:53Z
https://github.com/dlang/phobos/pull/4335
Comment #2
by github-bugzilla — 2016-05-18T17:26:03Z
Commit pushed to master at
https://github.com/dlang/phobos
https://github.com/dlang/phobos/commit/9fd3646ae698b925849ce60d1cbd26fbf2e1fd9f
Fix issue 16036 - isEmail returns invalid for any email with EmailStatusCode.none