aboutsummaryrefslogtreecommitdiffstats
path: root/src/rlx_prv_app_discover.erl
diff options
context:
space:
mode:
authorFred Hebert <[email protected]>2017-11-01 15:40:09 -0400
committerFred Hebert <[email protected]>2017-11-01 15:40:09 -0400
commit7e78c133c7a373384411d9fd0e1366b14e4c31d8 (patch)
treeb15f294821ce2bcddf14f97cbae0e50beabebb57 /src/rlx_prv_app_discover.erl
parentfb91587091ad8a9da7c22598e962d0f21dcc17ee (diff)
downloadrelx-7e78c133c7a373384411d9fd0e1366b14e4c31d8.tar.gz
relx-7e78c133c7a373384411d9fd0e1366b14e4c31d8.tar.bz2
relx-7e78c133c7a373384411d9fd0e1366b14e4c31d8.zip
Support OTP-20 Unicode functions
Use either optional compilation or version-safe variants of the string functions. Prevents warnings when the switch to OTP-21 will happen.
Diffstat (limited to 'src/rlx_prv_app_discover.erl')
-rw-r--r--src/rlx_prv_app_discover.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rlx_prv_app_discover.erl b/src/rlx_prv_app_discover.erl
index a8a40ae..d58cf71 100644
--- a/src/rlx_prv_app_discover.erl
+++ b/src/rlx_prv_app_discover.erl
@@ -132,7 +132,7 @@ add_system_lib_dir(State) ->
add_environment_lib_dir(_State) ->
case os:getenv("ERL_LIBS") of
false -> [];
- Libs -> [erlang:iolist_to_binary(L) || L <- string:tokens(Libs, ":")]
+ Libs -> [erlang:iolist_to_binary(L) || L <- rlx_string:lexemes(Libs, ":")]
end.
%% Order matters so this slow dedup needs to be used