[examples][cli][routing-utils][static-build] replace deprecated String.prototype.substr() (#7588)

.substr() is deprecated so we replace it with .slice() or substring() which aren't deprecated
Signed-off-by: Tobias Speicher <rootcommander@gmail.com>

Co-authored-by: Steven <steven@ceriously.com>
This commit is contained in:
CommanderRoot
2022-03-24 22:03:40 +01:00
committed by GitHub
parent 06e7753df0
commit d2ba06c6cb
13 changed files with 42 additions and 42 deletions

View File

@@ -199,7 +199,7 @@ async function testDeployment(
probe.path =
probe.path.substring(0, nextScriptIndex) +
scriptRelativePath +
probe.path.substr(scriptNameEnd + 1);
probe.path.slice(scriptNameEnd + 1);
}
const probeUrl = `https://${deploymentUrl}${probe.path}`;