We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 51dfc62 + 456392d commit 26a60f2Copy full SHA for 26a60f2
ExportAdapter.js
@@ -35,7 +35,7 @@ ExportAdapter.prototype.connect = function() {
35
}
36
37
//http://regexr.com/3cn6m
38
- if (!this.mongoURI.match(/^mongodb:\/\/((.+):(.+)@)?([^:@]+):([^:]+)\/(.+?)$/gm)) {
+ if (!this.mongoURI.match(/^mongodb:\/\/((.+):(.+)@)?([^:@]+):{0,1}([^:]+)\/(.+?)$/gm)) {
39
throw new Error("Invalid mongoURI: " + this.mongoURI)
40
41
var usernameStart = this.mongoURI.indexOf('://') + 3;
0 commit comments