File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -317,7 +317,10 @@ def expand_url(
317
317
split = urlsplit (url )
318
318
319
319
if (
320
- (bool (split .scheme ) and split .scheme in ["http" , "https" , "file" ])
320
+ (
321
+ bool (split .scheme )
322
+ and split .scheme in loadingOptions .fetcher .supported_schemes ()
323
+ )
321
324
or url .startswith ("$(" )
322
325
or url .startswith ("${" )
323
326
):
Original file line number Diff line number Diff line change @@ -317,7 +317,10 @@ def expand_url(
317
317
split = urlsplit(url)
318
318
319
319
if (
320
- (bool(split.scheme) and split.scheme in ["http", "https", "file"])
320
+ (
321
+ bool(split.scheme)
322
+ and split.scheme in loadingOptions.fetcher.supported_schemes()
323
+ )
321
324
or url.startswith("$(")
322
325
or url.startswith("${")
323
326
):
Original file line number Diff line number Diff line change @@ -317,7 +317,10 @@ def expand_url(
317
317
split = urlsplit(url)
318
318
319
319
if (
320
- (bool(split.scheme) and split.scheme in ["http", "https", "file"])
320
+ (
321
+ bool(split.scheme)
322
+ and split.scheme in loadingOptions.fetcher.supported_schemes()
323
+ )
321
324
or url.startswith("$(")
322
325
or url.startswith("${")
323
326
):
You can’t perform that action at this time.
0 commit comments