Soft'N'Design Software
/
projects
/
trivabble.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ba930e5
)
Do not use u flag in regexes
author
Raphaël Jakse
<raphael.trivabble@jakse.fr>
Sun, 12 Apr 2020 18:14:16 +0000
(20:14 +0200)
committer
Raphaë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
patch
|
blob
|
blame
|
history
diff --git
a/alert.js
b/alert.js
index 42d3270527ec11651fb1194647bf3fbe25006da0..9f534c22a5dc7752a3b5b5eebd51f1ef20fe239e 100644
(file)
--- 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();