parent
a87a8a7b35
commit
437a95bfe8
|
@ -916,7 +916,7 @@ where
|
||||||
.to_string();
|
.to_string();
|
||||||
|
|
||||||
// normalise windows paths
|
// normalise windows paths
|
||||||
name.replace('\\', "/")
|
name.replace('\\', "/").replace('-', "_")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -925,7 +925,7 @@ fn is_aiken_path(path: &Path, dir: impl AsRef<Path>) -> bool {
|
||||||
|
|
||||||
let re = Regex::new(&format!(
|
let re = Regex::new(&format!(
|
||||||
"^({module}{slash})*{module}\\.ak$",
|
"^({module}{slash})*{module}\\.ak$",
|
||||||
module = "[a-z][_a-z0-9]*",
|
module = "[a-z][-_a-z0-9]*",
|
||||||
slash = "(/|\\\\)",
|
slash = "(/|\\\\)",
|
||||||
))
|
))
|
||||||
.expect("is_aiken_path() RE regex");
|
.expect("is_aiken_path() RE regex");
|
||||||
|
|
Loading…
Reference in New Issue