docs: update documentation/comments
This commit is contained in:
parent
face6c254d
commit
5756ef6f98
1 changed files with 2 additions and 0 deletions
|
@ -55,6 +55,8 @@ export function parseDate(str, order) {
|
||||||
let parts = str.replace(/\s+/g, '').match(re[order]);
|
let parts = str.replace(/\s+/g, '').match(re[order]);
|
||||||
if (!parts) return null;
|
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);
|
parts = parts.slice(1);
|
||||||
|
|
||||||
let year, month, day;
|
let year, month, day;
|
||||||
|
|
Loading…
Reference in a new issue