From 5794bddb058c39b559265b7360e1d3b32a9d2ab0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Jakse?= Date: Sun, 12 Apr 2020 20:14:16 +0200 Subject: [PATCH] Do not use u flag in regexes This is not supported in Safari 9 --- alert.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/alert.js b/alert.js index 42d3270..9f534c2 100644 --- a/alert.js +++ b/alert.js @@ -129,7 +129,8 @@ divAlertCallback = callback; divAlert.style.display = ""; - if (!(/iPad|iPhone|iPod/gu).test(navigator.userAgent)) { + // eslint-disable-next-line require-unicode-regexp + if (!(/iPad|iPhone|iPod/g).test(navigator.userAgent)) { alertInput.focus(); alertInput.setSelectionRange(0, alertInput.value.length); alertInput.select(); -- 2.30.2