From d510bc83f9e6485439d68f7dcc60d93bac8c2799 Mon Sep 17 00:00:00 2001 From: Dishebh Bhayana <43489708+Dishebh@users.noreply.github.com> Date: Sat, 8 Feb 2020 10:27:51 +0530 Subject: [PATCH] Update InstrumentCluster.js (#603) --- src/screen/PowerSource/components/InstrumentCluster.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/screen/PowerSource/components/InstrumentCluster.js b/src/screen/PowerSource/components/InstrumentCluster.js index a402a5c6..836ecd77 100644 --- a/src/screen/PowerSource/components/InstrumentCluster.js +++ b/src/screen/PowerSource/components/InstrumentCluster.js @@ -52,7 +52,7 @@ const Settings = props => { }; const inputCheck = value => { - let regex = /^(?:\-)?[0-9]*(\.[0-9]{0,2})?$/; + let regex = /^(?:)?[0-9]*(\.[0-9]{0,2})?$/; return regex.test(value); };