From 24dd5e32adf558d7553b3649d7ea12a02cbde94d Mon Sep 17 00:00:00 2001 From: Mihajlo Medjedovic Date: Wed, 18 Nov 2020 13:10:29 +0100 Subject: [PATCH] style: lint --- src/SASjs.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/SASjs.ts b/src/SASjs.ts index 1d0bf4d..27e0489 100644 --- a/src/SASjs.ts +++ b/src/SASjs.ts @@ -415,22 +415,22 @@ export default class SASjs { const pattern: RegExp = // const matches = pattern.exec(response) const formInputs: any = {} - + if (matches && matches.length) { this.setLoginUrl(matches) const inputs = response.match(/]*>/g) - + if (inputs) { inputs.forEach((inputStr: string) => { const valueMatch = inputStr.match(/name="([^"]*)"\svalue="([^"]*)/) - + if (valueMatch && valueMatch.length) { formInputs[valueMatch[1]] = valueMatch[2] } }) } } - + return Object.keys(formInputs).length ? formInputs : null }