summaryrefslogtreecommitdiff
path: root/src/rebar_erlc_compiler.erl
diff options
context:
space:
mode:
authorFred Hebert <mononcqc@ferd.ca>2016-08-25 22:21:07 -0400
committerFred Hebert <mononcqc@ferd.ca>2016-08-25 22:21:07 -0400
commit4f32da2ab7e0a7cf2f2e2de911c0c8ea0a7d8848 (patch)
tree232cacdc61d742b0e6443fb54f1ccbef3ae5f500 /src/rebar_erlc_compiler.erl
parentb4e78f38a5cbd6d73f5481d2d7fa8d717688f576 (diff)
Equivalent trim_all in bin split for <17.x
The trim_all option used in binary:split/3 is not supported in 17.x. This patch makes an equivalent operation by eliminating empty split fragments. From the docs: trim Removes trailing empty parts of the result (as does trim in re:split/3. trim_all Removes all empty parts of the result. The new expression is therefore equivalent to the old one, but with the added benefit of compatibility. Fixes #1275
Diffstat (limited to 'src/rebar_erlc_compiler.erl')
0 files changed, 0 insertions, 0 deletions