From e8f5deac461b95f05a967f50c8e6405663b8ad0a Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Sun, 31 May 2026 04:09:35 +0100 Subject: [PATCH] Relax song swarm candidate slugs --- tools/run-song-snippet-trial-swarm.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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." } } }