1
0
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:
2022-09-22 16:26:45 +02:00
parent 5259cf3942
commit 61fdf5573b
3 changed files with 3 additions and 4 deletions

View File

@@ -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()