x/text/language: Wrong language is selected #48324
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes (via play.golang.org)
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I have a set of strings in Norwegian and Danish. The user requests content via Accept-Language header of
nb-no
(Norwegian). Example:https://play.golang.org/p/rfr4sjGVHkk
What did you expect to see?
I expected to get an exact match to the Norwegian language tag.
What did you see instead?
Match()
picks Danish instead.The text was updated successfully, but these errors were encountered: