bb-signer 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli.js +2 -2
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -259,9 +259,9 @@ function writeTomlMcpServers(path, mcpConfig) {
|
|
|
259
259
|
const sectionContent = `${sectionHeader}\ncommand = "${config.command}"\nargs = [${argsStr}]\n`;
|
|
260
260
|
|
|
261
261
|
// Check if section already exists — replace it
|
|
262
|
+
// Use lazy match with lookahead to capture full section until next [header] or EOF
|
|
262
263
|
const sectionRegex = new RegExp(
|
|
263
|
-
`\\[mcp_servers\\.${name.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')}\\][
|
|
264
|
-
's'
|
|
264
|
+
`\\[mcp_servers\\.${name.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')}\\][\\s\\S]*?(?=\\n\\[|$)`,
|
|
265
265
|
);
|
|
266
266
|
if (sectionRegex.test(content)) {
|
|
267
267
|
content = content.replace(sectionRegex, sectionContent);
|