Navigation Menu

Skip to content

Commit

Permalink
Add a missing space before "{"
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Aug 1, 2012
1 parent 00b0600 commit d4112b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/database/domain.js
Expand Up @@ -257,7 +257,7 @@ Domain.getNameAndIdFromHost = function(host) {
var domainMatcher = /^(?:doc|search)-([^\.]+)-([^\.\-]+)\./;
var match = host.match(domainMatcher);
if (match)
return{ name: match[1], id: match[2] };
return { name: match[1], id: match[2] };

return { name: '', id: '' };
};
Expand All @@ -267,7 +267,7 @@ Domain.getNameAndIdFromPath = function(path) {

var match = path.match(domainMatcher);
if (match)
return{ name: match[1], id: match[2] };
return { name: match[1], id: match[2] };

return { name: '', id: '' };
};

0 comments on commit d4112b3

Please sign in to comment.