Skip to content

Commit

Permalink
Update deprecated String.prototype.substr uses in response-targets.…
Browse files Browse the repository at this point in the history
…js (#100)
  • Loading branch information
BlueLovin authored Oct 3, 2024
1 parent f91c460 commit 3958936
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/response-targets/response-targets.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 3958936

Please sign in to comment.