fix regexp
This commit is contained in:
parent
a9647e0015
commit
4ec7e1b6c1
1 changed files with 2 additions and 2 deletions
|
@ -614,10 +614,10 @@ pandora.ui.infoView = function(data, isMixed) {
|
||||||
if (/\d{2}-\d{2}-\d{4}/.test(value)) {
|
if (/\d{2}-\d{2}-\d{4}/.test(value)) {
|
||||||
value = Ox.reverse(value.split('-')).join('-')
|
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('-')
|
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('-')
|
value = Ox.reverse(value.split('/')).join('-')
|
||||||
}
|
}
|
||||||
return value
|
return value
|
||||||
|
|
Loading…
Reference in a new issue