diff --git a/core/src/main/java/haveno/core/payment/validation/InteracETransferQuestionValidator.java b/core/src/main/java/haveno/core/payment/validation/InteracETransferQuestionValidator.java index 2fa0cf85..427a61f0 100644 --- a/core/src/main/java/haveno/core/payment/validation/InteracETransferQuestionValidator.java +++ b/core/src/main/java/haveno/core/payment/validation/InteracETransferQuestionValidator.java @@ -13,7 +13,7 @@ public class InteracETransferQuestionValidator extends InputValidator { public InteracETransferQuestionValidator(LengthValidator lengthValidator, RegexValidator regexValidator) { lengthValidator.setMinLength(1); - lengthValidator.setMaxLength(40); + lengthValidator.setMaxLength(160); this.lengthValidator = lengthValidator; regexValidator.setPattern("[A-Za-z0-9\\-\\_\\'\\,\\.\\? ]+"); diff --git a/desktop/src/test/java/haveno/desktop/util/validation/InteracETransferQuestionValidatorTest.java b/desktop/src/test/java/haveno/desktop/util/validation/InteracETransferQuestionValidatorTest.java index 8385e5d8..dd9258e4 100644 --- a/desktop/src/test/java/haveno/desktop/util/validation/InteracETransferQuestionValidatorTest.java +++ b/desktop/src/test/java/haveno/desktop/util/validation/InteracETransferQuestionValidatorTest.java @@ -53,7 +53,7 @@ public class InteracETransferQuestionValidatorTest { assertFalse(validator.validate(null).isValid); // null assertFalse(validator.validate("").isValid); // empty - assertFalse(validator.validate("abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ").isValid); // too long + assertFalse(validator.validate("abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ").isValid); // too long assertFalse(validator.validate("abc !@#").isValid); // invalid characters }