Skip to content

Commit

Permalink
sandbox: fix filter variable parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
jkissel committed Feb 2, 2024
1 parent 72bff0e commit d8926b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sandbox.html
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
if (value === '{{currentDate}}') { // convenience for current date
return new Date();
}
if (value.match?.(/....-..-..T..:..:..\....Z/)) {
if (value?.match?.(/....-..-..T..:..:..\....Z/)) {
return new Date(value);
}
return value;
Expand Down

0 comments on commit d8926b1

Please sign in to comment.