Open ankon opened 4 years ago
Based on reading the RFC's description of lookup I would expect this:
expect(lookup('fr-FR, en;q=0.9', ['fr', 'en'])).to.be.equal('fr');
In my tests however it returns 'en', because 'en' is found to be an exact (direct) match.
Based on reading the RFC's description of lookup I would expect this:
In my tests however it returns 'en', because 'en' is found to be an exact (direct) match.