Update IdentityHelperUtils.ts (#520)

This commit is contained in:
Leendert de Borst
2025-10-27 11:12:26 +01:00
parent 99dc808de4
commit 712a9a0182

View File

@@ -26,8 +26,10 @@ export class IdentityHelperUtils {
const trimmed = input.trim();
// Check if the format is valid ISO-like string manually, to support pre-1970 dates
// Matches: yyyy-MM-dd, yyyy-MM-ddTHH:mm:ss, yyyy-MM-dd HH:mm:ss, yyyy-MM-dd HH:mm:ss.SSS, etc.
/*
* Check if the format is valid ISO-like string manually, to support pre-1970 dates
* Matches: yyyy-MM-dd, yyyy-MM-ddTHH:mm:ss, yyyy-MM-dd HH:mm:ss, yyyy-MM-dd HH:mm:ss.SSS, etc.
*/
const match = trimmed.match(/^(\d{4})-(\d{2})-(\d{2})/);
if (match) {
const [_, y, m, d] = match;