!263 修复console.input() 输入字符串不全

Merge pull request !263 from gejinxin/v5-dev
This commit is contained in:
Looly 2021-01-19 10:03:50 +08:00 committed by Gitee
commit 8e2c153512

View File

@ -286,7 +286,7 @@ public class Console {
* @since 3.3.1
*/
public static String input() {
return scanner().next();
return scanner().nextLine();
}
// --------------------------------------------------------------------------------- console lineNumber