From 4ec7e1b6c1585adb7fd64d40d9d9a0ea2c0739f2 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 2 Apr 2019 14:57:35 +0800 Subject: [PATCH] fix regexp --- static/js/infoView.indiancinema.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/infoView.indiancinema.js b/static/js/infoView.indiancinema.js index 6b090c8a..8a0d7380 100644 --- a/static/js/infoView.indiancinema.js +++ b/static/js/infoView.indiancinema.js @@ -614,10 +614,10 @@ pandora.ui.infoView = function(data, isMixed) { if (/\d{2}-\d{2}-\d{4}/.test(value)) { value = Ox.reverse(value.split('-')).join('-') } - if (/\d{4}/\d{2}/\d{d}/.test(value)) { + if (/\d{4}i\/\d{2}\/\d{d}/.test(value)) { value = value.split('/').join('-') } - if (/\d{2}/\d{2}/\d{4}/.test(value)) { + if (/\d{2}\/\d{2}\/\d{4}/.test(value)) { value = Ox.reverse(value.split('/')).join('-') } return value