-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(legal entity): extend legal entity length (#216)
* feat(legal entity): extended legal entity length Extended pattern with additional currency characters and length adjustment. Testing added. Refs: eclipse-tractusx/portal#360
- Loading branch information
1 parent
1fdc0a1
commit 2250f34
Showing
3 changed files
with
109 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
/******************************************************************************** | ||
* Copyright (c) 2024 Contributors to the Eclipse Foundation | ||
* | ||
* See the NOTICE file(s) distributed with this work for additional | ||
* information regarding copyright ownership. | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Apache License, Version 2.0 which is available at | ||
* https://www.apache.org/licenses/LICENSE-2.0. | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations | ||
* under the License. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
********************************************************************************/ | ||
|
||
export const LEGAL_ENTITY_DATA = { | ||
LEGAL_ENTITY: { | ||
valid: [ | ||
'A', // 1 characters | ||
'1234567890'.repeat(16), // 160 characters | ||
// https://find-and-update.company-information.service.gov.uk/company/03249311 | ||
'CENTRE FOR HEALTH SCIENCES, TRAINING, RESEARCH AND DEVELOPMENT (CHESTRAD) INTERNATIONAL.', | ||
// https://find-and-update.company-information.service.gov.uk/company/04120480 | ||
'THIS IS THE COMPANY WITH THE LONGEST NAME SO FAR INCORPORATED AT THE REGISTRY OF COMPANIES IN ENGLAND AND WALES AND ENCOMPASSING THE REGISTRIES BASED IN SCOTLAN', | ||
'Bayerische Motoren Werke Aktiengesellschaft', | ||
'7-ELEVEN INTERNATIONAL LLC', | ||
'5N Plus Lübeck GmbH', | ||
'Recht 24/7 Schröder Rechtsanwaltsgesellschaft mbH', | ||
'+SEN Inc.', // leading special character | ||
'La Poste S.A.', | ||
'JPMORGAN ASIA-PACIFIC ADVANTAGE HYBRID FUND (QDII)', | ||
'Currency £$€¥¢', | ||
'Brackets []()', | ||
'Punctuation !?,.;:', | ||
'Double "Quote" Company S.A.', // special character "" in name | ||
'Single \'Quote\' Company LLC', // special character '' in name | ||
'Special Characters ^&%#@*/_-\\', | ||
'German: ÄÖÜß', | ||
'French: ÀÉÈÊË', | ||
'Spanish: ÁÉÍÓÚÑÜ', | ||
'Portuguese: ÃÕÂÊÇ', | ||
'Italian: ÀÈÉÌÒÙ', | ||
'Danish: ÆØÅ', | ||
'Swedish: ÅÄÖ', | ||
'Norwegian: ÅÆØ', | ||
'Finnish: ÄÖ', | ||
'Icelandic: ÆÐÞ', | ||
'Dutch: ÏËÏ', | ||
// -- not supported by the pattern | ||
// 'ACE 9 SPÓŁKA Z OGRANICZONĄ ODPOWIEDZIALNOŚCIĄ', | ||
// '摩根亚太优势混合型证券投资基金 (QDII)', | ||
// '삼성', // Samsung | ||
// '三', // Samsung | ||
// 'Czech: ČĎŇŘŠŤŽ', | ||
// 'Estonian: ÄÖÜŠŽ', | ||
// 'Slovak: ĽĹŔŠŤŽ', | ||
// 'Polish: ĄĆĘŁŃÓŚŹŻ', | ||
// 'Hungarian: ÁÉÍÓÖŐÚÜŰ', | ||
// 'Romanian: ÂÎŞŢ', | ||
// 'Bulgarian: ЙЪЬ', | ||
// 'Greek: ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ', | ||
// 'Turkish: ÇĞİıÖŞÜ', | ||
// 'Arabic: ابتثجحخدذرزسشصضطظعغفقكلمنهوي', | ||
// 'Hebrew: שלום עולם', | ||
// 'Hindi: अआइईउऊऋएऐओऔकखगघङचछजझञटठडढणतथदधनपफबभमयरलवशषस', | ||
// 'Japanese: あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわをん', | ||
// 'Chinese: 你好 世界', | ||
// 'Korean: 안녕하세요 세계', | ||
// 'Thai: สวัสดีชาวโลก', // Thai does not seem to work even with /p{L} | ||
], | ||
invalid: [ | ||
' Bayerische Motoren Werke Aktiengesellschaft', // leading space | ||
'Bayerische Motoren Werke Aktiengesellschaft ', // trailing space | ||
'Bayerische Motoren Werke Aktiengesellschaft', // double space | ||
'Bayerische Motoren Werke Aktiengesellschaft\n', // newline | ||
'W'.repeat(161), // 161 characters | ||
'', // empty | ||
], | ||
}, | ||
} |