Skip to content

Commit 63200ef

Browse files
committed
npm release
1 parent 2997d4d commit 63200ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ function parseOptions(a, b) {
456456
}
457457

458458
return {
459-
host : Array.isArray(host) ? host : host.split(',').map(x => new URL('s://' + x).hostname.replace(/[\[\]]/g, '')),
459+
host : Array.isArray(host) ? host : host.split(',').map(x => new URL('s://' + x).hostname.replace(/[[\]]/g, '')),
460460
port : Array.isArray(port) ? port : host.split(',').map(x => parseInt(new URL('s://' + x).port || port)),
461461
path : o.path || host.indexOf('/') > -1 && host + '/.s.PGSQL.' + port,
462462
database : o.database || o.db || (url.pathname || '').slice(1) || env.PGDATABASE || user,

0 commit comments

Comments
 (0)