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
No known key found for this signature in database
GPG Key ID: 33173CB6F77F4277
1 changed files with 1 additions and 1 deletions

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