Skip to content

33467: force baseAddress to reject non-latin-1 on address fields#313

Merged
mruff-aeq merged 2 commits into
bcgov:mainfrom
mruff-aeq:33467-force-baseAddress-reject-non-latin-1
May 19, 2026
Merged

33467: force baseAddress to reject non-latin-1 on address fields#313
mruff-aeq merged 2 commits into
bcgov:mainfrom
mruff-aeq:33467-force-baseAddress-reject-non-latin-1

Conversation

@mruff-aeq
Copy link
Copy Markdown
Collaborator

#33467 : /bcgov/entity#33467

Description of changes:
Added a new requireLatin1 prop to the BaseAddress component that, when enabled, applies a validation rule to all address text fields to ensure only Latin-1 (ISO-8859-1) characters are accepted. This allows for standard alphanumeric and accented characters while proactively rejecting non-Latin scripts like CJK or Hindi during entry or paste.

image

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the business-filings-ui license (Apache 2.0).

Copy link
Copy Markdown
Collaborator

@kialj876 kialj876 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but can you update the storybook to include the new prop please?

@mruff-aeq
Copy link
Copy Markdown
Collaborator Author

@

Looks good, but can you update the storybook to include the new prop please?

Screenshot 2026-05-19 at 11 42 19 AM

@mruff-aeq mruff-aeq requested a review from kialj876 May 19, 2026 16:06
Copy link
Copy Markdown
Collaborator

@kialj876 kialj876 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work

@mruff-aeq mruff-aeq merged commit 6133cc1 into bcgov:main May 19, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants