diff --git a/src/psql_migration.erl b/src/psql_migration.erl index f8bb162..0e03c77 100644 --- a/src/psql_migration.erl +++ b/src/psql_migration.erl @@ -193,7 +193,7 @@ connection_opts(Args, {env, URLName}) -> DatabaseUrl -> connection_opts(Args, {url, DatabaseUrl}) end; connection_opts(_Args, {url, DatabaseUrl}) -> - case uri_string:parse(re:replace(DatabaseUrl, "\\r|\\n", "", [global,{return,list}])) of + case uri_string:parse(string:trim(DatabaseUrl)) of {error, Error, Term} -> {error, {Error, Term}}; Map = #{userinfo := UserPass, host := Host, path := Path} ->