Skip to content

Commit fe1e525

Browse files
authored
Merge pull request #1341 from chestermax01/patch-1
Adapt Alibaba Cloud kvstore
2 parents 673b177 + 35facdb commit fe1e525

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/createClient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = function createClient (port_arg, host_arg, options) {
2929
// [redis:]//[[user][:password]@][host][:port][/db-number][?db=db-number[&password=bar[&option=value]]]
3030
if (parsed.slashes) { // We require slashes
3131
if (parsed.auth) {
32-
options.password = parsed.auth.split(':')[1];
32+
options.password = parsed.auth.slice(parsed.auth.indexOf(':') + 1);
3333
}
3434
if (parsed.protocol) {
3535
if (parsed.protocol === 'rediss:') {

0 commit comments

Comments
 (0)