kopia lustrzana https://github.com/c9/core
Merge pull request +8520 from c9/fix-dogfooding-and-signup
Fix dogfooding issues and broken github/bitbucket signuppull/117/merge
commit
cf433fc679
|
@ -37,7 +37,7 @@ plugin.getBaseUrl = function(req, sourceBaseUrlPattern, targetBaseUrlPattern) {
|
||||||
if (typeof sourceHost !== "string")
|
if (typeof sourceHost !== "string")
|
||||||
throw new Error("Not a valid request object: " + req);
|
throw new Error("Not a valid request object: " + req);
|
||||||
if (!sourceBaseUrlPattern)
|
if (!sourceBaseUrlPattern)
|
||||||
throw new Error("getBaseUrls() requires at least two arguments");
|
throw new Error("getBaseUrl() requires at least two arguments");
|
||||||
|
|
||||||
var sourceHostMatcher = sourceBaseUrlPattern
|
var sourceHostMatcher = sourceBaseUrlPattern
|
||||||
.replace(/^https?:\/\//, "")
|
.replace(/^https?:\/\//, "")
|
||||||
|
|
Ładowanie…
Reference in New Issue