summaryrefslogtreecommitdiffhomepage
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rwxr-xr-xscript/sync-zed.ts2
1 files changed, 1 insertions, 1 deletions
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) {