Skip to content

Commit 8e33491

Browse files
committed
Merge branch '6.4' into 7.2
* 6.4: Minor reword Add note to IBAN validator documentation about whitespace handling
2 parents 271313b + b5a3e15 commit 8e33491

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)