diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2017-11-16 22:14:48 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-16 22:14:48 -0500 |
commit | 94976d51db59d644ad540ffcacd52dd2c4d83398 (patch) | |
tree | bf055a7d2b472d7c59d59330c8691c1e3b6342b3 /src/rebar_templater.erl | |
parent | 9d050dd2bf014a2d7a2890d19ff2b396ed27a4f5 (diff) | |
parent | 2d5cd9c00cfa4e58066b48beee4057fdd52cc7be (diff) |
Merge pull request #1660 from ferd/otp-21-preparedness
OTP-21 readiness, Full Unicode support
Diffstat (limited to 'src/rebar_templater.erl')
-rw-r--r-- | src/rebar_templater.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rebar_templater.erl b/src/rebar_templater.erl index 75190ec..929ca47 100644 --- a/src/rebar_templater.erl +++ b/src/rebar_templater.erl @@ -120,7 +120,8 @@ default_author_and_email() -> {ok, Name} -> case rebar_utils:sh("git config --global user.email", [return_on_error]) of {ok, Email} -> - {string:strip(Name, both, $\n), string:strip(Email, both, $\n)}; + {rebar_string:trim(Name, both, "\n"), + rebar_string:trim(Email, both, "\n")}; {error, _} -> %% Use neither if one doesn't exist {"Anonymous", "anonymous@example.org"} |