only numbers in imdbId

This commit is contained in:
j 2018-05-09 17:27:34 +01:00
parent 099c2610e6
commit 2727c3d27d

View file

@ -623,6 +623,8 @@ pandora.ui.infoView = function(data) {
edit[key] = value
? Ox.decodeHTMLEntities(value).split('; ').map(Ox.encodeHTMLEntities)
: [];
} else if (key == 'imdbId') {
edit[key] = value.match(/\d{7}/)[0];
} else {
edit[key] = value;
}