Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
bwieger-atlassian-com committed Feb 6, 2025
1 parent c3d51cb commit b3b94e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/atlclients/loginManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,13 @@ export class LoginManager {
...getAgent(site),
});
const slugRegex = /[\[\:\/\?#@\!\$&'\(\)\*\+,;\=%\\\[\]]/gi;
let ausername = res.headers['x-ausername']; // bwieger
let ausername = res.headers['x-ausername'];
// convert the %40 and similar to special characters
ausername = decodeURIComponent(ausername);
// replace special characters with underscore (_)
ausername = ausername.replace(slugRegex, '_');
siteDetailsUrl = `${apiUrl}/rest/api/1.0/users/${ausername}`;
avatarUrl = `${apiUrl}/users/${ausername}/avatar.png?s=64`;
avatarUrl = `${apiUrl}/users/${ausername}/avatar.png?s=64`;
break;
}

Expand Down

0 comments on commit b3b94e6

Please sign in to comment.