fix: clarify /clear command output message (#609)

Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
Charles Packer
2026-01-20 19:52:38 -08:00
committed by GitHub
parent 8c3a0f5bf6
commit 3bf43d7eb9
4 changed files with 20 additions and 19 deletions

View File

@@ -74,7 +74,7 @@ function parseAliasesFromFile(filePath: string): Map<string, string> {
const funcMatch =
trimmed.match(/^([a-zA-Z_][a-zA-Z0-9_]*)\s*\(\)\s*\{?/) ||
trimmed.match(/^function\s+([a-zA-Z_][a-zA-Z0-9_]*)\s*\{?/);
if (funcMatch && funcMatch[1]) {
if (funcMatch?.[1]) {
functionName = funcMatch[1];
functionBody = `${line}\n`;
braceDepth =