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