Browse Source

ci: fix regex

Aiden Cline 5 months ago
parent
commit
356715f67d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      script/sync-zed.ts

+ 1 - 1
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) {