mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-30 13:54:01 +00:00
ci: fix regex
This commit is contained in:
parent
540421267a
commit
356715f67d
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user