mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
Merge pull request +8091 from c9/fix-indexof
Fix undefined.replace()
This commit is contained in:
commit
562aeb498f
2
node_modules/c9/urls.js
generated
vendored
2
node_modules/c9/urls.js
generated
vendored
@ -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?:\/\//, "")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user