-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(legal entity): extended legal entity length #216
feat(legal entity): extended legal entity length #216
Conversation
Extended pattern with additional currency characters and length adjustment. Testing added. Refs: eclipse-tractusx/portal#360
Looks good. @typecastcloud did you checked once if this also works for BPDM? |
There is no limitation in BPDM Gate and Pool regarding the length of company names. We checked this a few weeks ago. @AmirMattarx @nicoprow could you please confirm. edit: as noted by Amir 255 varchar limit depending on database/table settings. Portal backend needs to be aligned with regex and all frontend elements need to be checked to properly support longer names. I can create a PR in the backend repository. |
Double quote is already allowed in backend. A-Z 0-9 and _ is already covered by \w.
Regarding the company name , in the DB of course there is limitation since the field is created with varchar 255 , that means the limit is 255 chars |
@typecastcloud I got a security hot spot issue for postalCode pattern in another repo postalCodePattern: That's because it's using '*' so the input can have infinite length which we should always limit. Use something like {0,10} instead of '*' So final regex - /^(?!.*\s$)(?=[a-zA-Z\d-]{0,10}[-\s]?[a-zA-Z\d-]{0,10}$)[a-zA-Z\d\s-]{2,10}$/ CC - @oyo |
Hi, |
okay for me to fix it in a separate PR |
Description
Extended pattern with additional currency characters and length adjustment. Tests added.
Min length: 1
Max lenth: 160
Allows " (double quote \x22) to follow back-end implementation.
Allows £$€¥¢ to allow some additional currency symbols that are used in existing companies.
Why
Much longer company names exist than currently allowed.
Example:
https://find-and-update.company-information.service.gov.uk/company/03249311
88 characters
Issue
Refs: eclipse-tractusx/portal#360
Checklist