Skip to content

Commit df6ed38

Browse files
committed
consistent toLocaleLowerCase
1 parent 2831422 commit df6ed38

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

packages/browser-sdk/src/toolbar/Flags.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,12 @@ export function FlagsTable({
3333

3434
// If both match or both don't match, sort alphabetically
3535
if (aMatches === bMatches) {
36-
const aStartsWith = a.flagKey.toLowerCase().startsWith(searchQuery);
37-
const bStartsWith = b.flagKey.toLowerCase().startsWith(searchQuery);
36+
const aStartsWith = a.flagKey
37+
.toLocaleLowerCase()
38+
.startsWith(searchQuery);
39+
const bStartsWith = b.flagKey
40+
.toLocaleLowerCase()
41+
.startsWith(searchQuery);
3842

3943
// If one starts with search query and the other doesn't, prioritize the one that starts with it
4044
if (aStartsWith && !bStartsWith) return -1;

0 commit comments

Comments
 (0)