Merge pull request #200 from bohemima/master
Don't force port to be specified in mongoURI
This commit is contained in:
@@ -35,7 +35,7 @@ ExportAdapter.prototype.connect = function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//http://regexr.com/3cn6m
|
//http://regexr.com/3cn6m
|
||||||
if (!this.mongoURI.match(/^mongodb:\/\/((.+):(.+)@)?([^:@]+):([^:]+)\/(.+?)$/gm)) {
|
if (!this.mongoURI.match(/^mongodb:\/\/((.+):(.+)@)?([^:@]+):{0,1}([^:]+)\/(.+?)$/gm)) {
|
||||||
throw new Error("Invalid mongoURI: " + this.mongoURI)
|
throw new Error("Invalid mongoURI: " + this.mongoURI)
|
||||||
}
|
}
|
||||||
var usernameStart = this.mongoURI.indexOf('://') + 3;
|
var usernameStart = this.mongoURI.indexOf('://') + 3;
|
||||||
|
|||||||
Reference in New Issue
Block a user