From 057848116b8c7a0c98635c4c3ec870ed6ee22315 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A4=D1=80=D0=BE=D0=BB=D0=BE=D0=B2?= Date: Thu, 19 Aug 2021 15:06:28 +0500 Subject: [PATCH] fix RegExp for floats --- src/components/factory.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/factory.ts b/src/components/factory.ts index 3dd5ec6..e611075 100644 --- a/src/components/factory.ts +++ b/src/components/factory.ts @@ -1,7 +1,7 @@ import { Dispatch, SetStateAction } from "react" import notify from "./notify" -export const RegExpIsFloat = /^[-+]?\d+\.?\d?$/ +export const RegExpIsFloat = /^[-+]?\d+\.?\d*$/ /* other - объект с дополнительными свойствами колонки