From 9a31a6c2967ae5f9ce45fe338b07525668943dfd Mon Sep 17 00:00:00 2001 From: Kyle Strand Date: Mon, 26 Aug 2019 11:17:47 -0600 Subject: [PATCH] Permit use of Windows Batch files --- src/cli.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli.rs b/src/cli.rs index a76ba2084..945e60754 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -91,7 +91,7 @@ fn load_plugin(path: &std::path::Path, context: &mut Context) -> Result<(), Shel fn load_plugins_in_dir(path: &std::path::PathBuf, context: &mut Context) -> Result<(), ShellError> { let re_bin = Regex::new(r"^nu_plugin_[A-Za-z_]+$")?; - let re_exe = Regex::new(r"^nu_plugin_[A-Za-z_]+\.exe$")?; + let re_exe = Regex::new(r"^nu_plugin_[A-Za-z_]+\.(exe|bat)$")?; match std::fs::read_dir(path) { Ok(p) => {