diff options
| author | Aiden Cline <[email protected]> | 2025-11-09 13:03:10 -0600 |
|---|---|---|
| committer | Aiden Cline <[email protected]> | 2025-11-09 13:03:10 -0600 |
| commit | 356715f67d83fe60a55e9464757cd5a58531f2b2 (patch) | |
| tree | 4a40945b97373d4e595c8c13cf693f5b3f91d3f7 /script/sync-zed.ts | |
| parent | 540421267a85ef46f0b32a9a1900bc45be190a59 (diff) | |
| download | opencode-356715f67d83fe60a55e9464757cd5a58531f2b2.tar.gz opencode-356715f67d83fe60a55e9464757cd5a58531f2b2.zip | |
ci: fix regex
Diffstat (limited to 'script/sync-zed.ts')
| -rwxr-xr-x | script/sync-zed.ts | 2 |
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) { |
