From 1a724a5a7f847f9619c0717b81d616137ac4bd84 Mon Sep 17 00:00:00 2001
From: Ramesh Kumar <ramesh.p@matriotsolutions.com>
Date: Wed, 7 Apr 2021 15:10:02 +0530
Subject: [PATCH] TMSS-577: Updated Regex for decimal point

---
 SAS/TMSS/frontend/tmss_webapp/src/utils/unit.converter.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/SAS/TMSS/frontend/tmss_webapp/src/utils/unit.converter.js b/SAS/TMSS/frontend/tmss_webapp/src/utils/unit.converter.js
index 3c94e1d623d..c4f80c5163a 100644
--- a/SAS/TMSS/frontend/tmss_webapp/src/utils/unit.converter.js
+++ b/SAS/TMSS/frontend/tmss_webapp/src/utils/unit.converter.js
@@ -115,15 +115,15 @@ const UnitConverter = {
             return 'dms';
         }   else if (input.match(/^([0-1]?\d|2[0-3])h([0-5]?\d)m([0-5]?\d)(\.\d{1,4})?s$/)) {
             return 'hms';
-        }   else if (input.match(/^-?((\d0(.0{1,4})?)|([0-8]?\d)(.\d{1,4})?) ?d(egree)?s?$/)) {
+        }   else if (input.match(/^-?((\d0(.0{1,4})?)|([0-8]?\d)(\.\d{1,4})?) ?d(egree)?s?$/)) {
             return 'degrees';
-        }   else if (input.match(/^([0-1]?\d|2[0-3])(.\d{1,4})? ?h(our)?s?$/)) {
+        }   else if (input.match(/^([0-1]?\d|2[0-3])(\.\d{1,4})? ?h(our)?s?$/)) {
             return 'hours';
         }   else if (input.match(/^\-?((\d0?:(00:)(00))|(([0-8]\d):(([0-5]\d):)(([0-5]\d)(\.\d{1,4})?))) ?d(egree)?s?$/)) {
             return 'deg_format';
         }   else if (input.match(/^([0-1]?\d|2[0-3]):([0-5]?\d):([0-5]?\d)(\.\d{1,4})? ?h(our)?s?$/)) {
             return 'hour_format';
-        }   else if (input.match(/^\-?[0-6](.\d{1,20})?$/)) {
+        }   else if (input.match(/^\-?[0-6](\.\d{1,20})?$/)) {
             return 'radians';
         }   else {
             return null;
-- 
GitLab