Skip to content

Commit

Permalink
Replace usage of substr in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
scrhartley committed Dec 13, 2024
1 parent c8e6424 commit 94b70e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/util/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand Down

0 comments on commit 94b70e6

Please sign in to comment.