Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCommanderRoot <CommanderRoot@users.noreply.github.com>2022-05-03 15:52:45 +0300
committerGitHub <noreply@github.com>2022-05-03 15:52:45 +0300
commit56640ae815fbace78c62482711cb1733d26cee5e (patch)
tree18078e6b9ec3e8ffe7cc6ac28e4c8f0a309bce94 /plugins/Goals/vue/src
parent34ea7bbfcbc5a79a5c7b675b8cd2134cdda74cbe (diff)
Replace deprecated String.prototype.substr() (#19111)
.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
Diffstat (limited to 'plugins/Goals/vue/src')
-rw-r--r--plugins/Goals/vue/src/ManageGoals/ManageGoals.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Goals/vue/src/ManageGoals/ManageGoals.vue b/plugins/Goals/vue/src/ManageGoals/ManageGoals.vue
index af3ad41c39..f3ba68030c 100644
--- a/plugins/Goals/vue/src/ManageGoals/ManageGoals.vue
+++ b/plugins/Goals/vue/src/ManageGoals/ManageGoals.vue
@@ -701,10 +701,10 @@ export default defineComponent({
}
},
lcfirst(s: string) {
- return `${s.substr(0, 1).toLowerCase()}${s.substr(1)}`;
+ return `${s.slice(0, 1).toLowerCase()}${s.slice(1)}`;
},
ucfirst(s: string) {
- return `${s.substr(0, 1).toUpperCase()}${s.substr(1)}`;
+ return `${s.slice(0, 1).toUpperCase()}${s.slice(1)}`;
},
},
computed: {