Skip to content

Conversation

@vysakh-menon-aot
Copy link
Collaborator

@vysakh-menon-aot vysakh-menon-aot commented Jan 9, 2026

Issue #: bcgov/entity#31884, bcgov/entity#31888

Description of changes:

  • keeps any letter (all languages, including Indigenous), combining marks for accents/diacritics, any numeric character (0–9 and other scripts’ digits), literal punctuation: . , _

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

@vysakh-menon-aot vysakh-menon-aot self-assigned this Jan 9, 2026
Copy link
Collaborator

@loneil loneil 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, good test coverage, just minor test suggestion

from business_bn.bn_processors import sanitize_address


@pytest.mark.parametrize("test_input, expected", [
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could add inputs

  • with whitespace on either side
  • that have multiple (or all the) fields

just so the feilds list/lookup and strip parts are covered in case anyone changes that sanitize_address implementation

@vysakh-menon-aot vysakh-menon-aot merged commit 9f60637 into bcgov:main Jan 20, 2026
16 of 19 checks passed
@vysakh-menon-aot vysakh-menon-aot deleted the feature/31884-31888 branch January 20, 2026 21:24
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