diff --git a/cli/_prompt_template.ts b/cli/_prompt_template.ts index 23f4b61..433de1d 100644 --- a/cli/_prompt_template.ts +++ b/cli/_prompt_template.ts @@ -22,7 +22,7 @@ export async function promptProps< for await (const chunk of Deno.stdin.readable) { const text = decoder.decode(chunk) - if (text.startsWith('!EOF\n')) { + if ((/^!EOF\r?\n$/.test(text))) { break } //@ts-ignore TODO fix type inference