Merge pull request #18886 from Homebrew/maintainers-name-sorting

update-maintainers: ignore accents when sorting names
This commit is contained in:
Mike McQuaid 2024-12-06 16:05:37 +00:00 committed by GitHub
commit ba33e3a783
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -35,7 +35,7 @@ module Homebrew
members.each do |group, hash| members.each do |group, hash|
hash.replace(hash.slice(*public_members)) hash.replace(hash.slice(*public_members))
hash.each { |login, name| hash[login] = "[#{name}](https://github.com/#{login})" } 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 end
readme = HOMEBREW_REPOSITORY/"README.md" readme = HOMEBREW_REPOSITORY/"README.md"