feat(cli): support CR in multiline input
This commit is contained in:
parent
7fb5167308
commit
55a1ca7e9d
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue