Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to use an array of versions in Parser.satisfies() #466

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Stas-tolpekin
Copy link

This pull request adds the ability to use an array of versions in Parser.satisfies()
It can be useful for detect several versions of a browser that are not connected.

For example:

parser.satisfies({
 opera: ['~40', '>=43']
})

This example returns true for Opera 40 and Opera 45 but returns false for Opera 41

@coveralls
Copy link

Pull Request Test Coverage Report for Build 997

  • 5 of 5 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.07%) to 90.663%

Totals Coverage Status
Change from base Build 977: 0.07%
Covered Lines: 585
Relevant Lines: 597

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants