diff options
author | Tristan Sloughter <t@crashfast.com> | 2015-03-17 20:29:30 -0500 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2015-03-17 20:29:30 -0500 |
commit | e4bf78a96aa95b612ba0ae29d631018d8a6639d5 (patch) | |
tree | b7976bbf2671ee8f30d91c669bfeec349116f059 /src | |
parent | b4986925e83c521720f94d16d9f016248a91892e (diff) |
update hg username and email match in templates
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar_templater.erl | 2 |
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}; _ -> |