commit d07030404a193484ebf91f66847297a361ea4de2 parent 31a5db888e764b09a54d280679ac225e071e6e49 Author: Henry Unite <unitehenry@gmail.com> Date: Mon, 19 Oct 2026 18:23:33 +0000 fix: address review comment on ctx type Diffstat:
| M | prompt.ts | | | 5 | ++--- |
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/prompt.ts b/prompt.ts @@ -79,12 +79,11 @@ export async function registerPrompt( return; } - const lines = listResult.stdout.trim().split(" -"); + const lines = listResult.stdout.trim().split("\n"); const remotes: Record<string, { fetch?: string; push?: string }> = {}; for (const line of lines) { - const match = line.match(/^(S+)s+(S+)s+((fetch|push))$/); + const match = line.match(/^(\S+)\s+(\S+)\s+\((fetch|push)\)$/); if (match) { const [, name, url, type] = match; if (!remotes[name]) {