update-maintainers: ignore accents when sorting names

This commit is contained in:
Eric Knibbe 2024-12-06 09:22:05 -05:00
parent 1065b55a2c
commit a5c0b44c68
No known key found for this signature in database
GPG Key ID: 179D9CDDDB814168

View File

@ -35,7 +35,7 @@ module Homebrew
members.each do |group, hash|
hash.replace(hash.slice(*public_members))
hash.each { |login, name| hash[login] = "[#{name}](https://github.com/#{login})" }
sentences[group] = hash.values.sort.to_sentence
sentences[group] = hash.values.sort_by { |s| s.unicode_normalize(:nfd).gsub(/\P{L}+/, "") }.to_sentence
end
readme = HOMEBREW_REPOSITORY/"README.md"