mercurial/utils/stringutil.py
changeset 44022 c1ccefb513e4
parent 43506 9f70512ae2cf
child 45722 d502caab76bc
equal deleted inserted replaced
44021:6d3b67a837a6 44022:c1ccefb513e4
   591         proper.name if proper.name else commit.name,
   591         proper.name if proper.name else commit.name,
   592         proper.email if proper.email else commit.email,
   592         proper.email if proper.email else commit.email,
   593     )
   593     )
   594 
   594 
   595 
   595 
   596 _correctauthorformat = remod.compile(br'^[^<]+\s\<[^<>]+@[^<>]+\>$')
   596 _correctauthorformat = remod.compile(br'^[^<]+\s<[^<>]+@[^<>]+>$')
   597 
   597 
   598 
   598 
   599 def isauthorwellformed(author):
   599 def isauthorwellformed(author):
   600     '''Return True if the author field is well formed
   600     '''Return True if the author field is well formed
   601     (ie "Contributor Name <contrib@email.dom>")
   601     (ie "Contributor Name <contrib@email.dom>")