Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Validator] Strict mode for BIC and IBAN #28232

Copy link
Copy link
Closed
@sylfabre

Description

@sylfabre
Issue body actions

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.