Skip to content

Commit 65d0031

Browse files
committed
Merge branch '7.3' into 7.4
* 7.3: Minor reword Add note to IBAN validator documentation about whitespace handling
2 parents 205802e + 8bdd4ef commit 65d0031

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

reference/constraints/Iban.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,15 @@ will contain an International Bank Account Number.
8585
8686
.. include:: /reference/constraints/_empty-values-are-valid.rst.inc
8787

88+
.. note::
89+
90+
For convenience, the IBAN validator accepts values with various types of
91+
whitespace (e.g., regular, non-breaking, and narrow non-breaking spaces),
92+
which are automatically removed before validation. However, this flexibility
93+
can cause issues when storing IBANs or sending them to APIs that expect a
94+
strict format. To ensure compatibility, normalize IBANs by removing
95+
whitespace and converting them to uppercase before storing or processing.
96+
8897
Options
8998
-------
9099

0 commit comments

Comments
 (0)