Skip to content

Commit

Permalink
feat(company names): Increase company name length to align with front…
Browse files Browse the repository at this point in the history
…-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
  • Loading branch information
typecastcloud committed Jul 17, 2024
1 parent e20a452 commit 78b6466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/framework/Framework.Models/ValidationExpressions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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}$";
}

0 comments on commit 78b6466

Please sign in to comment.