Skip to content

Update substr method in text utilities

Sarah Groff Hennigh-Palermo requested to merge text-utils-replace-legacy into master

What does this MR do?

In the course of working on !18874 (merged), I noticed that the truncateSha function is using the legacy/non-recommended String.prototype.substr() method. This updates it to use String.prototype.substring()

Screenshots

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Sarah Groff Hennigh-Palermo

Merge request reports