Skip to content

Commit

Permalink
Updating the result.db variable to use the correct varible name for p…
Browse files Browse the repository at this point in the history
…ath.
  • Loading branch information
Morgan Rich committed Aug 1, 2012
1 parent 4a9be9a commit f599c3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var parseURL = function(options) {

result.username = parsed.auth && parsed.auth.split(':')[0];
result.password = parsed.auth && parsed.auth.split(':')[1];
result.db = (parsed.path || '').substr(1);
result.db = (parsed.pathname || '').substr(1);
result.host = parsed.hostname;
result.port = parsed.port;

Expand Down

0 comments on commit f599c3b

Please sign in to comment.