docs: update documentation/comments

This commit is contained in:
Arthur E. Jones 2022-07-04 21:32:46 -05:00 committed by James Long
parent face6c254d
commit 5756ef6f98

View file

@ -55,6 +55,8 @@ export function parseDate(str, order) {
let parts = str.replace(/\s+/g, '').match(re[order]);
if (!parts) return null;
// We're only interested in the groups so slice the full matched string off
// of the array.
parts = parts.slice(1);
let year, month, day;