updated regexr link for updated regex

This commit is contained in:
Taylor Stine
2016-02-03 07:44:23 -05:00
parent c37db7b6ff
commit 33f8cdcd39

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)
}