Skip to content

[Validator] Strict mode for BIC and IBAN #28232

Closed
@sylfabre

Description

@sylfabre

Description
BIC and IBAN validators both accept values with spaces that are removed before validation.
IBAN validator accepts values with lower case that are upper-ed before validation, but BIC validator refuses lower case values.

Theses validators should have a consistent behavior on case.

And I'm wondering why these validators accept spaces as it's a display feature.

A solution is to create a strict mode that rejects values with spaces and lower case.
Default value would be false for BC and can be set to true on a major update.

I can provide a PR with unit tests if you want.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions