Merge pull request +8091 from c9/fix-indexof

Fix undefined.replace()
pull/117/merge
Tim Robinson 2015-07-02 14:16:06 +02:00
commit 562aeb498f
1 zmienionych plików z 2 dodań i 0 usunięć

2
node_modules/c9/urls.js wygenerowano vendored
Wyświetl plik

@ -36,6 +36,8 @@ plugin.getBaseUrl = function(req, sourceBaseUrlPattern, targetBaseUrlPattern) {
|| req;
if (typeof sourceHost !== "string")
throw new Error("Not a valid request object: " + req);
if (!sourceBaseUrlPattern)
throw new Error("getBaseUrls() requires at least two arguments");
var sourceHostMatcher = sourceBaseUrlPattern
.replace(/^https?:\/\//, "")