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(
317317 split = urlsplit (url )
318318
319319 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+ )
321324 or url .startswith ("$(" )
322325 or url .startswith ("${" )
323326 ):
Original file line number Diff line number Diff line change @@ -317,7 +317,10 @@ def expand_url(
317317 split = urlsplit(url)
318318
319319 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+ )
321324 or url.startswith("$(")
322325 or url.startswith("${")
323326 ):
Original file line number Diff line number Diff line change @@ -317,7 +317,10 @@ def expand_url(
317317 split = urlsplit(url)
318318
319319 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+ )
321324 or url.startswith("$(")
322325 or url.startswith("${")
323326 ):
You can’t perform that action at this time.
0 commit comments