Skip to content

Commit

Permalink
fix(bug): fixes bug where Android version 'all' could lead to crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
wessberg committed Jun 20, 2019
1 parent 886569b commit 009f868
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/browserslist-generator/coerce.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {CaniuseBrowser} from "./i-caniuse";
* @returns {SemVer}
*/
export function coerce(browser: CaniuseBrowser | undefined, version: string): SemVer {
if (browser === "op_mini" && version === "all") {
if ((browser === "op_mini" || browser === "android") && version === "all") {
return _coerce("0.0.0")!;
} else if (browser === "safari" && version === "TP") {
return _coerce("99999.0.0")!;
Expand Down

0 comments on commit 009f868

Please sign in to comment.