Relax song swarm candidate slugs
This commit is contained in:
parent
7d5ae1368e
commit
e8f5deac46
1 changed files with 2 additions and 2 deletions
|
|
@ -128,8 +128,8 @@ function Assert-SongCandidates {
|
|||
|
||||
foreach ($file in $files) {
|
||||
$stem = [IO.Path]::GetFileNameWithoutExtension($file.Name)
|
||||
if ($stem -cnotmatch '^[a-z0-9]+(-[a-z0-9]+)*__[a-z0-9]+(-[a-z0-9]+)*__[a-z0-9]+(-[a-z0-9]+)*$') {
|
||||
throw "Candidate '$stem' must be <agent-id>__<family>__<hypothesis>.aqua with lowercase kebab-case segments."
|
||||
if ($stem -cnotmatch '^[a-z0-9]+([-_][a-z0-9]+)*__[a-z0-9]+([-_][a-z0-9]+)*__[a-z0-9]+([-_][a-z0-9]+)*$') {
|
||||
throw "Candidate '$stem' must be <agent-id>__<family>__<hypothesis>.aqua with lowercase slug segments."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue