Fix: AiScriptのreadline
が不正な値を返すことがある問題を修正 (#12675)
* fix input bug * Update CHANGELOG.md
This commit is contained in:
parent
b5c319b2c7
commit
617ff00a45
2 changed files with 3 additions and 6 deletions
|
@ -165,12 +165,8 @@ async function run() {
|
|||
return new Promise(ok => {
|
||||
os.inputText({
|
||||
title: q,
|
||||
}).then(({ canceled, result: a }) => {
|
||||
if (canceled) {
|
||||
ok('');
|
||||
} else {
|
||||
ok(a);
|
||||
}
|
||||
}).then(({ result: a }) => {
|
||||
ok(a ?? '');
|
||||
});
|
||||
});
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue