Fix: AiScriptのreadlineが不正な値を返すことがある問題を修正 (#12675)

* fix input bug

* Update CHANGELOG.md
This commit is contained in:
FineArchs 2023-12-16 08:57:45 +09:00 committed by GitHub
parent b5c319b2c7
commit 617ff00a45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 6 deletions

View file

@ -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 ?? '');
});
});
},