You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After extensive testing of the library against a list of addresses (some invalid, some valid) I have found it would be very useful if it would accept post codes without dashes. For example the format for Brazil is #####-### but often people skip the dash, making it an invalid code. Currently I have implemented this with a wrapper class that uses the ignoreSpaces parameter and replaces - with -? in the expression.
Suggestion for improvement
After extensive testing of the library against a list of addresses (some invalid, some valid) I have found it would be very useful if it would accept post codes without dashes. For example the format for Brazil is #####-### but often people skip the dash, making it an invalid code. Currently I have implemented this with a wrapper class that uses the ignoreSpaces parameter and replaces - with -? in the expression.
That being said I think it would be better if that was baked in the library itself.
(Updated code to fix a pattern bug)
The text was updated successfully, but these errors were encountered: