Skip to content

Commit be46da5

Browse files
committed
simplify iOS detection
1 parent fc6337f commit be46da5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
- Fixed ignorance of the obsolete `blacklist` option of `core-js-builder` - it should be removed only in the next major release
8282
- In case of bugs in `String.prototype.{ match, matchAll, replace, split }` in modern engines, add `s`, `d` and `v` flag support to polyfills of those methods
8383
- Just in case, added an extra input string validation to the polyfill of obsolete `Number.fromString` proposals
84+
- Simplified `iOS` detection
8485
- Many minor stylistic fixes and optimizations
8586
- Compat data improvements:
8687
- [`Math.sumPrecise`](https://github.com/tc39/proposal-math-sum) marked as [shipped in V8 ~ Chrome 147](https://issues.chromium.org/issues/374310075#comment16)
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
'use strict';
22
var userAgent = require('../internals/environment-user-agent');
33

4-
// eslint-disable-next-line redos/no-vulnerable -- safe
5-
module.exports = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent);
4+
module.exports = /ipad|iphone|ipod/i.test(userAgent) && /applewebkit/i.test(userAgent);

0 commit comments

Comments
 (0)