Skip to main content

author

Parses a string to extract an author name and an email address by splitting the line and removing angle brackets from the email portion.

def author(
line: string
) - > tuple

Parses a string containing an author's name and an optional email address, typically formatted as "Name < email >".

Parameters

NameTypeDescription
linestringThe raw input string containing the author's name and potentially an email address to be parsed.

Returns

TypeDescription
tupleA tuple containing the lowercase name string and the lowercase email string (or None if the email is missing).