From 78b6466499c4a561df77feb295e29f0d669c0c08 Mon Sep 17 00:00:00 2001 From: Karsten Thiems <150006841+typecastcloud@users.noreply.github.com> Date: Wed, 17 Jul 2024 13:48:55 +0200 Subject: [PATCH] feat(company names): Increase company name length to align with front-end Length increase is required for many companies. There are also companies with special characters at the start. Back-end was already misaligned with frontend-registration. Refs: eclipse-tractusx/portal#360 --- src/framework/Framework.Models/ValidationExpressions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/framework/Framework.Models/ValidationExpressions.cs b/src/framework/Framework.Models/ValidationExpressions.cs index 0933a324b7..be30311273 100644 --- a/src/framework/Framework.Models/ValidationExpressions.cs +++ b/src/framework/Framework.Models/ValidationExpressions.cs @@ -23,5 +23,5 @@ public static class ValidationExpressions { public const string Name = @"^.+$"; public const string Bpn = @"^(BPNL|bpnl)[\w|\d]{12}$"; - public const string Company = @"^\d*?[A-Za-zÀ-ÿ]\d?([A-Za-z0-9À-ÿ-_+=.,:;!?'\x22&#@()]\s?){2,40}$"; + public const string Company = @"^(?!.*\s$)([\wÀ-ÿ£$€¥¢@%*+\-/\\,.:;=<>!?&^#'\x22()[\]]\s?){1,160}$"; }