Allow Aiken files to have more than one dot-separated suffix.

This commit is contained in:
KtorZ
2024-03-04 00:15:05 +01:00
parent 50faf81c0f
commit dd1c7d675f

View File

@@ -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 = "(/|\\\\)",
))