Skip to content

Commit 866eadb

Browse files
committed
Fix bug with trimming characters represented by surrogate pairs in UTF-16
DEVSIX-1884
1 parent 31b949f commit 866eadb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

io/src/main/java/com/itextpdf/io/util/TextUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ public static boolean isSpaceOrWhitespace(Glyph glyph) {
231231
}
232232

233233
public static boolean isWhitespace(Glyph glyph) {
234-
return Character.isWhitespace((char) glyph.getUnicode());
234+
return Character.isWhitespace(glyph.getUnicode());
235235
}
236236

237237
public static boolean isSpace(Glyph glyph) {

0 commit comments

Comments
 (0)