Skip to content

Commit

Permalink
Merge pull request #498 from MORE-Platform/377-improve-regex-for-date…
Browse files Browse the repository at this point in the history
…-label-detection

#377: Improve regex to detect date-time labels
  • Loading branch information
ja-fra authored Jul 16, 2024
2 parents 706fbdb + 49bab68 commit f207181
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 f207181

Please sign in to comment.