Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/activity.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Speicher <rootcommander@gmail.com>2022-03-24 17:50:21 +0300
committerLouis <6653109+artonge@users.noreply.github.com>2022-04-20 18:23:02 +0300
commit08837c045e263e58f0b0b531b31f31a4b3160c33 (patch)
tree5d90c6d5ac774f62e38f74841c6048b02456b438 /cypress
parentb27c31010d873f818cbde28b8171d98837384ca0 (diff)
Replace deprecated String.prototype.substr()
.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
Diffstat (limited to 'cypress')
-rw-r--r--cypress/utils/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/cypress/utils/index.js b/cypress/utils/index.js
index 71eadc97..00d3054d 100644
--- a/cypress/utils/index.js
+++ b/cypress/utils/index.js
@@ -20,6 +20,6 @@
*
*/
-const randHash = () => Math.random().toString(36).replace(/[^a-z]+/g, '').substr(0, 10)
+const randHash = () => Math.random().toString(36).replace(/[^a-z]+/g, '').slice(0, 10)
export default { randHash }