Skip to content
Snippets Groups Projects
Commit be657c9e authored by Cam Saul's avatar Cam Saul
Browse files

remove stray escapey slash for regex from hell :scream:

parent 757c4f4c
Branches
Tags
No related merge requests found
......@@ -136,7 +136,7 @@ DatabasesControllers.controller('DatabaseEdit', ['$scope', '$routeParams', '$loc
placeholder: "******"
}],
parseDetails: function(details) {
var regex = /^mongodb:\/\/(?:([^@:]+)(?::([^@:]+))?@)?([^\\/:@]+)(?::([\d]+))?\/([^\/]+)$/gm, // :scream:
var regex = /^mongodb:\/\/(?:([^@:]+)(?::([^@:]+))?@)?([^\/:@]+)(?::([\d]+))?\/([^\/]+)$/gm, // :scream:
matches = regex.exec(details.conn_str);
return {
user: matches[1],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment