Merge pull request #210 from taylorstine/regexr_comment

updated regexr link for updated regex
This commit is contained in:
Fosco Marotto
2016-02-03 10:53:22 -08:00

View File

@@ -34,7 +34,7 @@ ExportAdapter.prototype.connect = function() {
return this.connectionPromise;
}
//http://regexr.com/3cn6m
//http://regexr.com/3cncm
if (!this.mongoURI.match(/^mongodb:\/\/((.+):(.+)@)?([^:@]+):{0,1}([^:]+)\/(.+?)$/gm)) {
throw new Error("Invalid mongoURI: " + this.mongoURI)
}