summaryrefslogtreecommitdiff
path: root/cli/fs_util.rs
diff options
context:
space:
mode:
authorAdilson Schmitt Junior <adilsonschj@gmail.com>2022-05-02 21:43:03 +0200
committerGitHub <noreply@github.com>2022-05-02 15:43:03 -0400
commit256dcb058ac2dd2a935076922265278c56264050 (patch)
tree52e1e8557ab7c7405c0373f52bb51cafdd003d14 /cli/fs_util.rs
parent66b9187a2dd2ea96e760b9bcd81a578dd338147d (diff)
fix(test/bench): accept file protocol module specifier CLI args (#14429)
Diffstat (limited to 'cli/fs_util.rs')
-rw-r--r--cli/fs_util.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/cli/fs_util.rs b/cli/fs_util.rs
index 5a32d5c39..fe0ef8857 100644
--- a/cli/fs_util.rs
+++ b/cli/fs_util.rs
@@ -253,6 +253,7 @@ where
let lowercase_path = path.to_lowercase();
if lowercase_path.starts_with("http://")
|| lowercase_path.starts_with("https://")
+ || lowercase_path.starts_with("file://")
{
let url = ModuleSpecifier::parse(&path)?;
prepared.push(url);