updated regexr link for updated regex
This commit is contained in:
@@ -34,7 +34,7 @@ ExportAdapter.prototype.connect = function() {
|
|||||||
return this.connectionPromise;
|
return this.connectionPromise;
|
||||||
}
|
}
|
||||||
|
|
||||||
//http://regexr.com/3cn6m
|
//http://regexr.com/3cncm
|
||||||
if (!this.mongoURI.match(/^mongodb:\/\/((.+):(.+)@)?([^:@]+):{0,1}([^:]+)\/(.+?)$/gm)) {
|
if (!this.mongoURI.match(/^mongodb:\/\/((.+):(.+)@)?([^:@]+):{0,1}([^:]+)\/(.+?)$/gm)) {
|
||||||
throw new Error("Invalid mongoURI: " + this.mongoURI)
|
throw new Error("Invalid mongoURI: " + this.mongoURI)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user