mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-10 05:40:06 +00:00
chore: specs fixing, regex improve
This commit is contained in:
@@ -10,7 +10,7 @@ const dictionary = ['Log Off']
|
||||
* @returns username
|
||||
*/
|
||||
export const extractUserNameSas9 = (response: string) => {
|
||||
const regex = /"title":\s?".*"/
|
||||
const regex = /"title":\s?".*?"/
|
||||
|
||||
const matched = response?.match(regex)
|
||||
let username = matched?.[0].split(':')[1].trim()
|
||||
|
||||
Reference in New Issue
Block a user