www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 16036] New: std.net.isemail - isEmail reurns "valid: false"


          Issue ID: 16036
           Summary: std.net.isemail - isEmail reurns "valid: false" for
                    any email with EmailStatusCode.none (default)
           Product: D
           Version: D2
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: thecybershadow gmail.com
                CC: doob me.com


////////////////// test.d /////////////////
import std.net.isemail, std.stdio;

void main()
    writeln(isEmail("test.test iana.org"));

This prints:

    valid: false
    localPart: test.test
    domainPart: iana.org
    statusCode: error

This contradicts the documentation (and just not useful).

May 17 2016