Angular_filter for localTime error fixed when input is undefined.

This commit is contained in:
Tanshu 2013-06-06 23:53:53 +05:30
parent 5ceb4e8f0c
commit d111c7b41c
2 changed files with 4 additions and 1 deletions

View File

@ -1,6 +1,6 @@
CACHE MANIFEST CACHE MANIFEST
# version 2013-06-06.2 # version 2013-06-06.3
CACHE: CACHE:
/partial/404.html /partial/404.html

View File

@ -90,6 +90,9 @@ overlord_filter.filter('localTime', function () {
} }
return function (input) { return function (input) {
if (typeof input === 'undefined') {
return '';
}
var d = input.match(/(\w+)/g); var d = input.match(/(\w+)/g);
if (d.length !== 5) { if (d.length !== 5) {
return input; return input;