1
0
mirror of https://github.com/lancedikson/bowser synced 2026-03-02 03:40:27 +00:00

Adds loose comparison support

This commit is contained in:
udivankin
2018-08-16 19:04:10 +03:00
committed by udi
parent 42b4c8cfa3
commit 6204d9f417
5 changed files with 44 additions and 15 deletions

View File

@@ -111,6 +111,13 @@ const isValidBrowser = browser.satisfies({
chrome: ">20.1.1432",
firefox: ">31",
opera: ">22"
// also supports equality operator
chrome: "=20.1.1432", // will match particular build only
// and loose-equality operator
chrome: "~20" // will match any 20.* sub-version
chrome: "~20.1" // will match any 20.1.* sub-version (20.1.19 as well as 20.1.12.42-alpha.1)
});
```