From d53a589f1526d8602f7678e67b10729a4fa7d933 Mon Sep 17 00:00:00 2001 From: Espen Hovlandsdal Date: Thu, 22 Dec 2022 10:22:08 -0800 Subject: [PATCH] test(cli): fix graphql datasets not being cleaned up --- packages/@sanity/cli/test/shared/cleanupDangling.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@sanity/cli/test/shared/cleanupDangling.ts b/packages/@sanity/cli/test/shared/cleanupDangling.ts index 9a8a58b6e49..90352a3014d 100644 --- a/packages/@sanity/cli/test/shared/cleanupDangling.ts +++ b/packages/@sanity/cli/test/shared/cleanupDangling.ts @@ -72,7 +72,7 @@ async function deleteDatasets() { } function isTestEntity(entity: string): boolean { - return /^test[-_]\d{8}-/.test(entity) + return /^test[-_]\d{8}[-_]/.test(entity) } function isTestEntityOlderThanThreshold(entity: string): boolean {