fix lint & make regex more robust
This commit is contained in:
parent
f2a649e611
commit
729806b9b4
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ limitations under the License.
|
||||||
|
|
||||||
function safariVersionCheck(ua) {
|
function safariVersionCheck(ua) {
|
||||||
try {
|
try {
|
||||||
const safariVersionMatch = ua.match(/Mac OS X ([\d|_]+).*Version\/([\d|\.]+) Safari/);
|
const safariVersionMatch = ua.match(/Mac OS X ([\d|_]+).*Version\/([\d|.]+).*Safari/);
|
||||||
if (safariVersionMatch) {
|
if (safariVersionMatch) {
|
||||||
const macOSVersionStr = safariVersionMatch[1];
|
const macOSVersionStr = safariVersionMatch[1];
|
||||||
const safariVersionStr = safariVersionMatch[2];
|
const safariVersionStr = safariVersionMatch[2];
|
||||||
|
|
Loading…
Reference in a new issue