From 6b841a0fc448098940f83dac14d5a8c8f5e1f358 Mon Sep 17 00:00:00 2001 From: denise Date: Thu, 16 Aug 2012 17:11:48 -0400 Subject: [PATCH] CC-4239: Playlist: need to improve error msg "Something went wrong" -fixed --- airtime_mvc/public/js/airtime/library/spl.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/airtime_mvc/public/js/airtime/library/spl.js b/airtime_mvc/public/js/airtime/library/spl.js index 7c38352ef..fc6bc7210 100644 --- a/airtime_mvc/public/js/airtime/library/spl.js +++ b/airtime_mvc/public/js/airtime/library/spl.js @@ -17,7 +17,8 @@ var AIRTIME = (function(AIRTIME){ width; function isTimeValid(time) { - var regExpr = new RegExp("^\\d{2}[:]\\d{2}[:]\\d{2}([.]\\d{1,6})?$"); + //var regExpr = new RegExp("^\\d{2}[:]\\d{2}[:]\\d{2}([.]\\d{1,6})?$"); + var regExpr = new RegExp("^\\d{2}[:]([0-5]){1}([0-9]){1}[:]([0-5]){1}([0-9]){1}([.]\\d{1,6})?$"); return regExpr.test(time); }