Allow Aiken files to have more than one dot-separated suffix.
This commit is contained in:
parent
50faf81c0f
commit
dd1c7d675f
|
@ -868,7 +868,7 @@ fn is_aiken_path(path: &Path, dir: impl AsRef<Path>) -> bool {
|
|||
use regex::Regex;
|
||||
|
||||
let re = Regex::new(&format!(
|
||||
"^({module}{slash})*{module}\\.ak$",
|
||||
"^({module}{slash})*{module}(\\.[-_a-z0-9]*)*\\.ak$",
|
||||
module = "[a-z][-_a-z0-9]*",
|
||||
slash = "(/|\\\\)",
|
||||
))
|
||||
|
|
Loading…
Reference in New Issue