Merge pull request #459 from BatmanAoD/WinBatchFiles

Permit use of Windows Batch files
This commit is contained in:
Jonathan Turner 2019-08-27 05:47:24 +12:00 committed by GitHub
commit 3514c77aac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) => {