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

200 name handling #204

Merged
merged 19 commits into from
Jun 21, 2024
Prev Previous commit
Next Next commit
Update client.go
  • Loading branch information
ChrisPates committed Jun 20, 2024
commit cbfd87b058430008a1d509858e6725cea90bdfad
4 changes: 2 additions & 2 deletions internal/google/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,10 @@ func (c *client) GetUsers(query string) ([]*admin.User, error) {
// Identity Store will accept and a 'space' for an empty name but not a 'zero width space'
// So we need to replace any 'zero width space' strings with a single 'space' to allow comparison and sync
for _, user := range u {
if user.Name.GivenName == string('<200b>') {
if user.Name.GivenName == string("\u200b") {
user.Name.GivenName = " "
}
if user.Name.FamilyName == string('<200b>') {
if user.Name.FamilyName == string("\u200b") {
user.Name.FamilyName = " "
}
}
Expand Down
Loading