From 48e2407b6c42de20c96ed443868b6545d8d16cab Mon Sep 17 00:00:00 2001 From: Tobias Speicher Date: Thu, 24 Mar 2022 15:50:21 +0100 Subject: [PATCH] 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 --- cypress/utils/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cypress/utils/index.js b/cypress/utils/index.js index 71eadc97a..00d3054d3 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 }