Replaced the regular expression replace with trimEnd() in the validateNote validator in the JavaScript for the transaction form.
This commit is contained in:
parent
488e72679e
commit
0f6c23e1f3
@ -825,7 +825,7 @@ function validateNote() {
|
||||
const error = document.getElementById("accounting-note-error");
|
||||
field.value = field.value
|
||||
.replace(/^\s*\n/, "")
|
||||
.replace(/\s+$/, "");
|
||||
.trimEnd();
|
||||
field.classList.remove("is-invalid");
|
||||
error.innerText = "";
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user