Skip to content

Commit

Permalink
fix: Remove " as allowed character from company name
Browse files Browse the repository at this point in the history
This character in company names breaks keycloak.
  • Loading branch information
typecastcloud authored Aug 19, 2024
1 parent cc501bf commit 75ce0c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/Patterns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export const Patterns = {
UUID: /^[a-f0-9]{8}(-[a-f0-9]{4}){4}[a-f0-9]{8}$/i,
EXTID: /^[a-z0-9]{6,36}$/i,
COMPANY_NAME:
/^(?!.*\s$)([\wÀ-ÿ£$€¥¢@%*+\-/\\,.:;=<>!?&^#'\x22()[\]]\s?){1,160}$/,
/^(?!.*\s$)([\wÀ-ÿ£$€¥¢@%*+\-/\\,.:;=<>!?&^#'()[\]]\s?){1,160}$/,
name: /^([A-Za-zÀ-ÿ-,.'](?!.*[-,.]{2})[A-Za-zÀ-ÿ-,.']{1,40} ?)[^ –]{1,40}$/,
zipcode: /^[A-Z0-9-]{1,8}$/,
streetNumber: /^[0-9A-Za-z- ]{1,20}$/,
Expand Down

0 comments on commit 75ce0c7

Please sign in to comment.