Fix undefined.replace()

pull/117/merge
Lennart kats 2015-07-02 12:07:50 +00:00
rodzic bd76f5ab1a
commit b232c0d1e8
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?:\/\//, "")