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
|
CACHE MANIFEST
|
||||||
|
|
||||||
# version 2013-06-06.2
|
# version 2013-06-06.3
|
||||||
|
|
||||||
CACHE:
|
CACHE:
|
||||||
/partial/404.html
|
/partial/404.html
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user