Skip to content
This repository was archived by the owner on Feb 14, 2021. It is now read-only.

lookup prefers 'exact match' even with lower quality #6

@ankon

Description

@ankon

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions