From 712a9a0182f3fa9bfcaadf9e2a822260c2bfb901 Mon Sep 17 00:00:00 2001 From: Leendert de Borst Date: Mon, 27 Oct 2025 11:12:26 +0100 Subject: [PATCH] Update IdentityHelperUtils.ts (#520) --- shared/identity-generator/src/utils/IdentityHelperUtils.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/shared/identity-generator/src/utils/IdentityHelperUtils.ts b/shared/identity-generator/src/utils/IdentityHelperUtils.ts index d87126a57..0dde05a68 100644 --- a/shared/identity-generator/src/utils/IdentityHelperUtils.ts +++ b/shared/identity-generator/src/utils/IdentityHelperUtils.ts @@ -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;