From 52e05c994a10d42a68388c1df6a3aa3d24cb7020 Mon Sep 17 00:00:00 2001 From: Matt Mastracci Date: Wed, 13 Nov 2024 11:46:56 -0700 Subject: [PATCH] deno fmt --- tools/rebuild.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/rebuild.ts b/tools/rebuild.ts index 094ad88..e92d7c6 100755 --- a/tools/rebuild.ts +++ b/tools/rebuild.ts @@ -41,12 +41,12 @@ for (const path of collectRecursively(tests, "")) { function sortNumberAware(a: string, b: string): number { const aMatch = a.match(/^(.+?)_(\d+)$/); const bMatch = b.match(/^(.+?)_(\d+)$/); - + if (aMatch && bMatch && aMatch[1] === bMatch[1]) { // Same base name, compare numbers return parseInt(aMatch[2]) - parseInt(bMatch[2]); } - + // Default to string comparison return a.localeCompare(b); }