From cacb1599e3b126960819626ec3fd55bed75f878b Mon Sep 17 00:00:00 2001 From: Cyril Date: Wed, 27 Jan 2021 21:40:23 +0100 Subject: [PATCH] Allow for passwords that contain spaces, fix #15 --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 2c4b7a5..4faa7d7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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,