fix regexp

This commit is contained in:
j 2019-04-02 14:57:35 +08:00
parent a9647e0015
commit 4ec7e1b6c1

View file

@ -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