Experience-Monks / Experience-Monks/react-background-video-player

Can not get iOSNavigator correctly

Open
#12 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
57
Forks
14
PR merge metrics
No merged PRs in 30d

Description

This is my appVersion

- `2.6 (iPhone; iPhone 7; iOS 11.4; Scale/2.00; deviceid:0CAB2B9xxxxxxxxx55201B0)`

After going deeper to code, i found that the regular express `/OS (\d+)_(\d+)_?(\d+)?/` doesn't match my appVersion

```js
const iOSNavigator = typeof navigator !== 'undefined' && (navigator.appVersion).match(/OS (\d+)_(\d+)_?(\d+)?/);
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.