mirror of
https://github.com/nushell/nushell
synced 2024-11-14 17:07:07 +00:00
Permit use of Windows Batch files
This commit is contained in:
parent
d51e12c69d
commit
9a31a6c296
1 changed files with 1 additions and 1 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue