Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix address validation for whitespace after comma #4253

Merged
merged 1 commit into from May 25, 2020
Merged

Fix address validation for whitespace after comma #4253

merged 1 commit into from May 25, 2020

Conversation

ghost
Copy link

@ghost ghost commented May 10, 2020

Typical comma separated values have a space after each comma in order to make the list more human-readable. In some areas of bisq, comma separated lists are generated this way (see #4203), but the validation of comma separated addresses was not accepting spaces after commas. This change to the regex allows optional whitespace after comma separators. A new test has been added to validate the scenario of whitespace after comma.

Fixes #4203

Before

image

image

After

image

image

Typical comma separated values have a space after each comma
in order to make the list more human-readable.  In some areas
of bisq, comma separated lists are generated this way (see #4203),
but the validation of comma separated addresses was not accepting
spaces after commas.  This change to the regex allows optional
whitespace after comma separators.  A new test has been
added to validate the scenario of whitespace after comma.

Fixes #4203
@ghost ghost mentioned this pull request May 12, 2020
@ghost
Copy link

ghost commented May 16, 2020

👍 utACK

Copy link
Member

@sqrrm sqrrm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

@sqrrm sqrrm merged commit 07fc648 into bisq-network:master May 25, 2020
@sqrrm sqrrm added this to the v1.3.5 milestone May 25, 2020
@ghost ghost mentioned this pull request Jun 11, 2020
@ghost ghost deleted the fix_validation_address_fields branch June 29, 2020 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Validation Error on Field Ignored Peers
1 participant