From 9d41aa8f269aaf4572662370639f9406765b23e2 Mon Sep 17 00:00:00 2001 From: Valeriia Maltseva Date: Mon, 16 Dec 2024 18:13:45 +0100 Subject: [PATCH] fixed the Sonar error --- .../src/core/components/input-number/input-number.stories.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/src/core/components/input-number/input-number.stories.tsx b/assets/js/src/core/components/input-number/input-number.stories.tsx index b83617d1b..4609db764 100644 --- a/assets/js/src/core/components/input-number/input-number.stories.tsx +++ b/assets/js/src/core/components/input-number/input-number.stories.tsx @@ -38,7 +38,7 @@ export const Disabled = { export const WithFormattedValue = { args: { - formatter: (value: any) => `$ ${value}`.replace(/\B(?=(\d{3})+(?!\d))/g, ','), + formatter: (value: any) => `$ ${value}`, value: 1000 } }