Skip to content

Commit

Permalink
Merge pull request #210 from CommanderRoot/refactor/rm-deprecated-substr
Browse files Browse the repository at this point in the history
refactor: replace deprecated String.prototype.substr()
  • Loading branch information
utarwyn committed Mar 27, 2022
2 parents 959af3c + b2eb878 commit fa1a9a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/i18n/I18nProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class I18nProvider {
if (!loaded && locale && locale.startsWith(I18nProvider.FILEPATH_PREFIX)) {
filepath = path.resolve(
process.cwd(),
locale.substr(I18nProvider.FILEPATH_PREFIX.length)
locale.slice(I18nProvider.FILEPATH_PREFIX.length)
);
}

Expand Down

0 comments on commit fa1a9a9

Please sign in to comment.