Skip to content
Snippets Groups Projects
Commit 5756ef6f authored by Arthur E. Jones's avatar Arthur E. Jones Committed by James Long
Browse files

docs: update documentation/comments

parent face6c25
No related branches found
No related tags found
No related merge requests found
...@@ -55,6 +55,8 @@ export function parseDate(str, order) { ...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment