Skip to content

Commit

Permalink
Update FieldValueValidator.java
Browse files Browse the repository at this point in the history
  • Loading branch information
al-niessner authored Oct 4, 2023
1 parent 1c45d8f commit 653d900
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -841,7 +841,7 @@ private void checkFormat(String value, String format, int fieldIndex,
}
if (length != precision) {
isValid = false;
if (value.stripTrailing().length() == value.length()) {
if (value.trim().length() == value.length()) {
addTableProblem(ExceptionType.ERROR, ProblemType.FIELD_VALUE_FORMAT_PRECISION_MISMATCH,
"The number of digits to the right of the decimal point " + "in the value '"
+ value.trim() + "' does not equal the "
Expand Down

0 comments on commit 653d900

Please sign in to comment.