Skip to content

Commit

Permalink
Replace deprecated substr() → substring()
Browse files Browse the repository at this point in the history
  • Loading branch information
acusti committed May 17, 2024
1 parent 7d3b07a commit b54369a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/uniquify/src/uniquify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ const uniquify = ({
const existingValueMatch = value.match(valueIdxRegex);
if (existingValueMatch) {
const existingValueIdx = parseInt(
existingValueMatch[0].substr(separator.length),
existingValueMatch[0].substring(separator.length),
10,
);

Expand Down

0 comments on commit b54369a

Please sign in to comment.