From 87dc8ead08e8eec3645657c230f6ca857f81e0f8 Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Wed, 23 Apr 2025 09:16:50 +0200 Subject: [PATCH] Added Dots to useCurrency.js --- composables/useCurrency.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composables/useCurrency.js b/composables/useCurrency.js index 864e5a8..fca9ed3 100644 --- a/composables/useCurrency.js +++ b/composables/useCurrency.js @@ -1,3 +1,3 @@ export const useCurrency = (value,currencyString = " €") => { - return `${Number(value).toFixed(2).replace(".",",")} ${currencyString}` + return `${Number(value).toFixed(2).replace(".",",")} ${currencyString}`.replace(/\B(?=(\d{3})+(?!\d))/g, "."); } \ No newline at end of file