From 39589365536e2719c85aaba12a326ee3a6a55c4d Mon Sep 17 00:00:00 2001 From: Matthew Jury Date: Thu, 3 Oct 2024 03:47:04 -0400 Subject: [PATCH] Update deprecated `String.prototype.substr` uses in response-targets.js (#100) --- src/response-targets/response-targets.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/response-targets/response-targets.js b/src/response-targets/response-targets.js index 01e1285..26fffc3 100644 --- a/src/response-targets/response-targets.js +++ b/src/response-targets/response-targets.js @@ -29,13 +29,13 @@ var attrPossibilities = [ respCode, - respCode.substr(0, 2) + '*', - respCode.substr(0, 2) + 'x', + respCode.substring(0, 2) + '*', + respCode.substring(0, 2) + 'x', - respCode.substr(0, 1) + '*', - respCode.substr(0, 1) + 'x', - respCode.substr(0, 1) + '**', - respCode.substr(0, 1) + 'xx', + respCode.substring(0, 1) + '*', + respCode.substring(0, 1) + 'x', + respCode.substring(0, 1) + '**', + respCode.substring(0, 1) + 'xx', '*', 'x',