From 2cd56455d9012770a40650327c1298e5bfe775ce Mon Sep 17 00:00:00 2001 From: Randolf Jung Date: Thu, 6 Jul 2023 18:20:46 +0200 Subject: [PATCH] Add regular expression for page ranges --- index.bs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.bs b/index.bs index 3e6f4a6e8..bcbc95e5b 100644 --- a/index.bs +++ b/index.bs @@ -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 .regex "^[0-9]+(?:-[0-9]+)?$" )], ? scale: (0.1..2.0) .default 1.0, ? shrinkToFit: bool .default true, }