Skip to content

Commit

Permalink
Add regular expression for page ranges
Browse files Browse the repository at this point in the history
  • Loading branch information
jrandolf-2 committed Jul 6, 2023
1 parent ddabede commit fef37b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2743,7 +2743,7 @@ PDF document represented as a Base64-encoded string.
? margin: browsingContext.PrintMarginParameters,
? orientation: ("portrait" / "landscape") .default "portrait",
? page: browsingContext.PrintPageParameters,
? pageRanges: [*(js-uint / text)],
? pageRanges: [*(js-uint / text .regexp "^[0-9]+(?:-[0-9]+)?$" )],
? scale: (0.1..2.0) .default 1.0,
? shrinkToFit: bool .default true,
}
Expand Down

0 comments on commit fef37b0

Please sign in to comment.