Revision 7f414d7b
Von Sven Schöling vor fast 7 Jahren hinzugefügt
js/kivi.js | ||
---|---|---|
138 | 138 |
|
139 | 139 |
var parts = time.replace(/\s+/g, "").split(ns._time_format.sep); |
140 | 140 |
if (parts.length == 2) { |
141 |
for (var idx in parts) { |
|
142 |
if (Number.isNaN(Number.parseInt(parts[idx]))) |
|
143 |
return undefined; |
|
144 |
} |
|
141 | 145 |
now.setHours(parts[ns._time_format.h], parts[ns._time_format.m]); |
142 | 146 |
return now; |
143 | 147 |
} else |
Auch abrufbar als: Unified diff
Validator: time - striktere Prüfung und tests