summaryrefslogtreecommitdiff
path: root/cli/installer.rs
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2020-02-11 12:01:56 +0100
committerGitHub <noreply@github.com>2020-02-11 12:01:56 +0100
commita3bfbcceade3d359f677106399562b461b4af01a (patch)
tree93f6fcc56d98bbc0f71f5b5782381f672895f634 /cli/installer.rs
parent701ce9b3342647cf01cb23c4fc28bc99ce0aa8c1 (diff)
refactor: rewrite deno test, add Deno.test() (#3865)
* rewrite test runner in Rust * migrate "test" and "runTests" functions from std to "Deno" namespace * use "Deno.test()" to run internal JS unit tests * remove std downloads for Deno subcommands
Diffstat (limited to 'cli/installer.rs')
-rw-r--r--cli/installer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/installer.rs b/cli/installer.rs
index b1a795f99..c7f32ce21 100644
--- a/cli/installer.rs
+++ b/cli/installer.rs
@@ -22,7 +22,7 @@ lazy_static! {
).case_insensitive(true).build().unwrap();
}
-fn is_remote_url(module_url: &str) -> bool {
+pub fn is_remote_url(module_url: &str) -> bool {
module_url.starts_with("http://") || module_url.starts_with("https://")
}