diff --git a/tools/run-song-snippet-trial-swarm.ps1 b/tools/run-song-snippet-trial-swarm.ps1 index 0c73b1e..92447d2 100644 --- a/tools/run-song-snippet-trial-swarm.ps1 +++ b/tools/run-song-snippet-trial-swarm.ps1 @@ -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 ____.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 ____.aqua with lowercase slug segments." } } }