Skip to content

Commit

Permalink
Add Locale.ENGLISH to getNormalizedName
Browse files Browse the repository at this point in the history
  • Loading branch information
vasct committed Nov 13, 2024
1 parent d82380b commit c137b2c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Locale;
import java.util.Objects;
import java.util.Scanner;
import java.util.regex.Pattern;
Expand Down Expand Up @@ -567,7 +568,8 @@ public static String getNormalizedName(@Nullable String name) {
if (name == null) {
return null;
}
return normalizedNameExcludePattern.matcher(name).replaceAll("").toLowerCase();
// lowercase with English locale for consistent behavior with the backend and across different device locales
return normalizedNameExcludePattern.matcher(name).replaceAll("").toLowerCase(Locale.ENGLISH);
}

/**
Expand Down

0 comments on commit c137b2c

Please sign in to comment.