Skip to content

Commit

Permalink
improve serialization
Browse files Browse the repository at this point in the history
(cherry picked from commit 3a8990d)
  • Loading branch information
tballison committed Nov 14, 2024
1 parent 9d2fad2 commit 1fc0ac1
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ public String getPageSeparator() {
* @param pageSeparator
*/
public void setPageSeparator(String pageSeparator) {
if (pageSeparator.isBlank()) {
return;
}
Matcher m = ALLOWABLE_PAGE_SEPARATORS_PATTERN.matcher(pageSeparator);
if (!m.find()) {
throw new IllegalArgumentException(pageSeparator + " contains illegal characters.\n" +
Expand Down

0 comments on commit 1fc0ac1

Please sign in to comment.