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 3c94e1d623d9efa09368b69647c0b9de1ee50ed8..c4f80c5163ab31be1dc4791e730f32be215eeda2 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;