From 356715f67d83fe60a55e9464757cd5a58531f2b2 Mon Sep 17 00:00:00 2001 From: Aiden Cline Date: Sun, 9 Nov 2025 13:03:10 -0600 Subject: [PATCH] ci: fix regex --- script/sync-zed.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/sync-zed.ts b/script/sync-zed.ts index 29a1c030d..ba367a9a0 100755 --- a/script/sync-zed.ts +++ b/script/sync-zed.ts @@ -66,7 +66,7 @@ async function main() { const extensionsTomlPath = "extensions.toml" const extensionsToml = await Bun.file(extensionsTomlPath).text() - const versionRegex = new RegExp(`(\\[${EXTENSION_NAME}\\]\\s+(?:.*\\s*)?)version = "[^"]+"`) + const versionRegex = new RegExp(`(\\[${EXTENSION_NAME}\\][\\s\\S]*?)version = "[^"]+"`) const updatedToml = extensionsToml.replace(versionRegex, `$1version = "${cleanVersion}"`) if (updatedToml === extensionsToml) {