diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2016-08-25 22:31:26 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-25 22:31:26 -0400 |
commit | 7fc48ca85507a66e445108be09ec2ca10a803b2c (patch) | |
tree | 232cacdc61d742b0e6443fb54f1ccbef3ae5f500 /src/rebar_app_utils.erl | |
parent | b4e78f38a5cbd6d73f5481d2d7fa8d717688f576 (diff) | |
parent | 4f32da2ab7e0a7cf2f2e2de911c0c8ea0a7d8848 (diff) |
Merge pull request #1312 from ferd/compatible-trim_all
Equivalent trim_all in bin split for <17.x
Diffstat (limited to 'src/rebar_app_utils.erl')
-rw-r--r-- | src/rebar_app_utils.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_app_utils.erl b/src/rebar_app_utils.erl index d256cac..50c6314 100644 --- a/src/rebar_app_utils.erl +++ b/src/rebar_app_utils.erl @@ -182,7 +182,7 @@ update_source(AppInfo, {pkg, PkgName, PkgVsn, Hash}, State) -> undefined -> get_package(PkgName, "0", State); <<"~>", Vsn/binary>> -> - [Vsn1] = binary:split(Vsn, [<<" ">>], [trim_all, global]), + [Vsn1] = [X || X <- binary:split(Vsn, [<<" ">>], [global]), X =/= <<>>], get_package(PkgName, Vsn1, State); _ -> {PkgName, PkgVsn} |