RED-7806 - Specific customer document cannot be processed

- add brackets
This commit is contained in:
Corina Olariu 2023-10-25 11:36:54 +03:00
parent efa3d75479
commit 0e0a811f9d

View File

@ -224,8 +224,9 @@ public class TextPositionSequence implements CharSequence {
@JsonAttribute(ignore = true)
public String getFont() {
if (textPositions.get(0).getFontName() == null)
if (textPositions.get(0).getFontName() == null) {
return "none";
}
return textPositions.get(0).getFontName().toLowerCase(Locale.ROOT).replaceAll(",bold", "").replaceAll(",italic", "");
}