summaryrefslogtreecommitdiffhomepage
path: root/script/sync-zed.ts
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-11-09 13:03:10 -0600
committerAiden Cline <[email protected]>2025-11-09 13:03:10 -0600
commit356715f67d83fe60a55e9464757cd5a58531f2b2 (patch)
tree4a40945b97373d4e595c8c13cf693f5b3f91d3f7 /script/sync-zed.ts
parent540421267a85ef46f0b32a9a1900bc45be190a59 (diff)
downloadopencode-356715f67d83fe60a55e9464757cd5a58531f2b2.tar.gz
opencode-356715f67d83fe60a55e9464757cd5a58531f2b2.zip
ci: fix regex
Diffstat (limited to 'script/sync-zed.ts')
-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) {