Allow for passwords that contain spaces, fix #15

This commit is contained in:
Cyril 2021-01-27 21:40:23 +01:00
parent c57093f69b
commit cacb1599e3

View File

@ -117,7 +117,7 @@ async function run() {
const retData = {
success: false,
} as IRetData;
const [username, password] = str.split(" ");
const [username, password] = str.split(/ (.+)/, 2);
const data: any = {
username,
password,