Do not use u flag in regexes
authorRaphaël Jakse <raphael.trivabble@jakse.fr>
Sun, 12 Apr 2020 18:14:16 +0000 (20:14 +0200)
committerRaphaël Jakse <raphael.trivabble@jakse.fr>
Sun, 12 Apr 2020 18:14:16 +0000 (20:14 +0200)
This is not supported in Safari 9

alert.js

index 42d3270527ec11651fb1194647bf3fbe25006da0..9f534c22a5dc7752a3b5b5eebd51f1ef20fe239e 100644 (file)
--- a/alert.js
+++ b/alert.js
         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();