Skip to content

Commit

Permalink
fix(js): replace "substr" (deprecated) by "substring"
Browse files Browse the repository at this point in the history
  • Loading branch information
enylin committed Dec 28, 2022
1 parent c81dcc9 commit 0177111
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ function verifyTaiwanIdIntermediateString(input: string): boolean {
: parseInt(input[1], intRadix)

const rest = input
.substr(2)
.substring(2)
.split('')
.map(n => parseInt(n, intRadix))

Expand Down

0 comments on commit 0177111

Please sign in to comment.