fix: deprecated syntax of lower substr (#3013)

* fixed import error syntax

* replace lower.substr with lower.substring

* remove redundant parameter

* fixed import syntax error

* fixed import syntax error
This commit is contained in:
wangxuan authored and GitHub committed 2022-11-10 13:29:55 -05:00
1 parent 173b6568fd
commit 08c58b0634
3 files changed
+4 -5

No files matched your search

@@ -365,5 +365,5 @@ export default class ExtensionManager {
* @param {string} lower
*/
function _capitalizeFirstCharacter(lower) {
return lower.charAt(0).toUpperCase() + lower.substr(1);
return lower.charAt(0).toUpperCase() + lower.substring(1);
}