From 1fbea40c4dca6da4776f5493c7357f69a9946914 Mon Sep 17 00:00:00 2001 From: ogerly Date: Mon, 8 Aug 2022 15:27:42 +0200 Subject: [PATCH] remove regex --- frontend/src/components/Contributions/ContributionForm.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/Contributions/ContributionForm.vue b/frontend/src/components/Contributions/ContributionForm.vue index 3dda5ea41..03fc08a92 100644 --- a/frontend/src/components/Contributions/ContributionForm.vue +++ b/frontend/src/components/Contributions/ContributionForm.vue @@ -106,7 +106,7 @@ export default { }, methods: { numberFormat(value) { - return (this.form.amount = value.replace(/\.|,, '')) + return (this.form.amount = value.replace(/\.|,/, '')) }, submit() { this.numberFormat(this.form.amount)