summaryrefslogtreecommitdiff
path: root/src/rebar_templater.erl
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2015-03-17 21:37:35 -0400
committerFred Hebert <mononcqc@ferd.ca>2015-03-17 21:37:35 -0400
commitcafd62e10185e2fc05490c387484dfdb2b615803 (patch)
treeb7976bbf2671ee8f30d91c669bfeec349116f059 /src/rebar_templater.erl
parenta7d70074ffdbe802655d0cf471ae05b4a3d4f55f (diff)
parente4bf78a96aa95b612ba0ae29d631018d8a6639d5 (diff)
Merge pull request #284 from tsloughter/master
update hg username and email match in templates
Diffstat (limited to 'src/rebar_templater.erl')
-rw-r--r--src/rebar_templater.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_templater.erl b/src/rebar_templater.erl
index 143c28b..75cbb87 100644
--- a/src/rebar_templater.erl
+++ b/src/rebar_templater.erl
@@ -156,7 +156,7 @@ default_author_and_email() ->
%% Ok, try mecurial
case rebar_utils:sh("hg showconfig ui.username", [return_on_error]) of
{ok, NameEmail} ->
- case re:run(NameEmail, [{capture, [1,2], list}]) of
+ case re:run(NameEmail, "^(.*) <(.*)>$", [{capture, [1,2], list}]) of
{match, [Name, Email]} ->
{Name, Email};
_ ->