threads / patch / 16795

patchRe: [PATCH] git-send-email: handle email address with quoted comma

Subject: Re: [PATCH] git-send-email: handle email address with quoted comma

## tl;dr

One message between Dec 19, 2008 and Dec 19, 2008. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Matt Kraai· Dec 19, 2008, 06:38 UTC · lore
Howdy,
Show 6 quoted lines
> +sub split_addrs($) {
> +    my ($addrs) = @_;
> +
> +	return &quotewords('\s*,\s*', 1, $addrs);
> +}
> +
According to the documentation of Text::ParseWords,
 The &*quotewords() functions simply call &parse_line(), so if you're
 only splitting one line you can call &parse_line() directly and save
 a function call.

so quotewords could be replaced by parse_line. I don't know if that's less readable, though.

-- 
Matt                                                 http://ftbfs.org/

← back to recent threads