Skip to content

Commit

Permalink
#377: Improve regex to detect date-time labels
Browse files Browse the repository at this point in the history
  • Loading branch information
ja-fra committed Jul 16, 2024
1 parent 706fbdb commit 49bab68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ParticipationDataList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ Licensed under the Elastic License 2.0. */
}
function isValidDateTimeFormat(dateTimeString: string): boolean {
const regex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}\+\d{4}$/;
const regex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}(:\d{2}(\.\d+)?)?[+-]\d{4}$/;
return regex.test(dateTimeString);
}
Expand Down

0 comments on commit 49bab68

Please sign in to comment.