(1) language.MustParse rejects "lang_ZZ" and throws an error;
(2) language.MustParse parses "lang_ZZ" to a tag of just "lang", similar to "lang_UND", e.g. language.MustParse of "en_ZZ" and "en" should return the identical result.
(3) language.Matcher supports ZZ country code and works properly.
What did you see instead?
language.MustParse accepts ZZ, but language.Matcher crashes on that.
The text was updated successfully, but these errors were encountered:
Not familiar with the code that well and this could just be a symptom of a larger problem, but it looks like the cause of the panics are because of one byte in the regionToGroups byte array in the language/tables.go file that was removed (accidentally?) golang/text@b85db4f#diff-9b4a7a0caec1562de30551ab14452668L3346