From 94b70e61e9a9ac671a364938363de3783b83afa8 Mon Sep 17 00:00:00 2001 From: scrhartley Date: Fri, 13 Dec 2024 15:22:25 +0000 Subject: [PATCH] Replace usage of substr in tests --- test/util/util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/util/util.js b/test/util/util.js index 77c0c2812..363fdda78 100644 --- a/test/util/util.js +++ b/test/util/util.js @@ -71,8 +71,8 @@ function parseParams(str) { } var params = {}; var e if (str) { - if (str.substr(0, 1) == '?') { - str = str.substr(1) + if (str.slice(0, 1) == '?') { + str = str.slice(1) } while (e = re.exec(str)) { var k = decode(e[1])