We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f68b7f9 commit a52f8bdCopy full SHA for a52f8bd
src/helpers/config-helper.js
@@ -181,10 +181,11 @@ const api = {
181
};
182
183
if (urlParts.auth) {
184
- result = _.assign(result, {
185
- username: urlParts.auth.split(':')[0],
186
- password: urlParts.auth.split(':')[1],
187
- });
+ const authParts = urlParts.auth.split(':');
+ result.username = authParts[0];
+ if (authParts.length > 1) {
+ result.password = authParts.slice(1).join(':');
188
+ }
189
}
190
191
return result;
0 commit comments