amaechler opened a new pull request, #13822:
URL: https://github.com/apache/druid/pull/13822

   ### Description
   
   While reading some code around 
[`JSON_STRING_FORMATTER`](https://github.com/apache/druid/blob/882ae9f002d5f0c845e4a03d633a1959737066dc/web-console/src/utils/formatter.ts#L36-L68),
 I noticed some usages of [`String.prototype.substr()
   
`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr)
 which has been deprecated (thanks vscode).
   
   I replaced it with 
[`slice`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/slice)
 which is quite straightforward. The only (relevant) difference is the second 
argument, which relates to the `endIndex` instead of the `length`.
   
   <hr>
   
   This PR has:
   
   - [x] been self-reviewed.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to