From b1e6e37b7e3d7992858d6fe7147ebe877a6c4329 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 23 Jul 2019 16:39:41 +0200 Subject: [PATCH] as many digits as possible --- static/js/infoView.indiancinema.js | 2 +- static/js/mediaView.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/static/js/infoView.indiancinema.js b/static/js/infoView.indiancinema.js index ed56ecaa5..9776dd421 100644 --- a/static/js/infoView.indiancinema.js +++ b/static/js/infoView.indiancinema.js @@ -656,7 +656,7 @@ pandora.ui.infoView = function(data, isMixed) { ? Ox.decodeHTMLEntities(value).split('; ').map(Ox.encodeHTMLEntities) : []; } else if (key == 'imdbId') { - edit[key] = value ? value.match(/\d+?/)[0] : value; + edit[key] = value ? value.match(/\d+/)[0] : value; } else { edit[key] = value; } diff --git a/static/js/mediaView.js b/static/js/mediaView.js index f7ad8e4e8..f77731484 100644 --- a/static/js/mediaView.js +++ b/static/js/mediaView.js @@ -406,7 +406,7 @@ pandora.ui.mediaView = function(options) { var conditions, matches; if (key == 'id' && data.value.substr(0, 2) != '0x') { if (pandora.site.site.id == '0xdb') { - matches = data.value.match(/\d+?/); + matches = data.value.match(/\d+/); } else { matches = data.value.match(/[A-Z]+/); }