Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update user suffix handling in bags code #13

Merged
merged 1 commit into from
Jul 31, 2024
Merged

Update user suffix handling in bags code #13

merged 1 commit into from
Jul 31, 2024

Conversation

ianmcorvidae
Copy link
Member

Changes to the same handling I've been adding elsewhere. We weren't actually using the configured value in the code as it was, so I also updated it to use that.

Copy link
Member

@slr71 slr71 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! 👍

}
return retval
re, _ := regexp.Compile(`@.*$`)
return fmt.Sprintf("%s@%s", re.ReplaceAllString(username, ""), strings.Trim(b.userDomain, "@"))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@ianmcorvidae ianmcorvidae merged commit 3f5e829 into main Jul 31, 2024
3 checks passed
@ianmcorvidae ianmcorvidae deleted the user-suffix branch July 31, 2024 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants