refactor: Replace deprecated substr with substring (#8644)
This commit is contained in:
@@ -25,7 +25,7 @@ function removeTrailingSlash(str) {
|
||||
return str;
|
||||
}
|
||||
if (str.endsWith('/')) {
|
||||
str = str.substr(0, str.length - 1);
|
||||
str = str.substring(0, str.length - 1);
|
||||
}
|
||||
return str;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user