Skip to contentSkip to conversation

git-send-email: handle email address with quoted comma

PATCH Matt Kraai 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore

Matt Kraai

author
#0 lore raw

Howdy,

Review

Quoted 6 lines
(quoted diff) +6 -0
+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.

Signature · 1 line
Matt                                                 http://ftbfs.org/