Angular_filter for localTime error fixed when input is undefined.
This commit is contained in:
parent
5ceb4e8f0c
commit
d111c7b41c
@ -1,6 +1,6 @@
|
||||
CACHE MANIFEST
|
||||
|
||||
# version 2013-06-06.2
|
||||
# version 2013-06-06.3
|
||||
|
||||
CACHE:
|
||||
/partial/404.html
|
||||
|
@ -90,6 +90,9 @@ overlord_filter.filter('localTime', function () {
|
||||
}
|
||||
|
||||
return function (input) {
|
||||
if (typeof input === 'undefined') {
|
||||
return '';
|
||||
}
|
||||
var d = input.match(/(\w+)/g);
|
||||
if (d.length !== 5) {
|
||||
return input;
|
||||
|
Loading…
Reference in New Issue
Block a user