Skip to content
This repository was archived by the owner on Apr 1, 2026. It is now read-only.

Commit 356715f

Browse files
committed
ci: fix regex
1 parent 5404212 commit 356715f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

script/sync-zed.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ async function main() {
6666
const extensionsTomlPath = "extensions.toml"
6767
const extensionsToml = await Bun.file(extensionsTomlPath).text()
6868

69-
const versionRegex = new RegExp(`(\\[${EXTENSION_NAME}\\]\\s+(?:.*\\s*)?)version = "[^"]+"`)
69+
const versionRegex = new RegExp(`(\\[${EXTENSION_NAME}\\][\\s\\S]*?)version = "[^"]+"`)
7070
const updatedToml = extensionsToml.replace(versionRegex, `$1version = "${cleanVersion}"`)
7171

7272
if (updatedToml === extensionsToml) {

0 commit comments

Comments
 (0)