diff --git a/crates/aiken-project/src/lib.rs b/crates/aiken-project/src/lib.rs index bdab5a11..f875c976 100644 --- a/crates/aiken-project/src/lib.rs +++ b/crates/aiken-project/src/lib.rs @@ -916,7 +916,7 @@ where .to_string(); // normalise windows paths - name.replace('\\', "/") + name.replace('\\', "/").replace('-', "_") } } @@ -925,7 +925,7 @@ fn is_aiken_path(path: &Path, dir: impl AsRef) -> bool { let re = Regex::new(&format!( "^({module}{slash})*{module}\\.ak$", - module = "[a-z][_a-z0-9]*", + module = "[a-z][-_a-z0-9]*", slash = "(/|\\\\)", )) .expect("is_aiken_path() RE regex");