From 200df2fd74322d3c7b4bb2a69e711a40265ead1b Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 26 Dec 2022 03:03:16 +0000 Subject: CTAN sync 202212260303 --- biblio/citation-style-language/citeproc-node-label.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'biblio/citation-style-language/citeproc-node-label.lua') diff --git a/biblio/citation-style-language/citeproc-node-label.lua b/biblio/citation-style-language/citeproc-node-label.lua index 27cafa2f18..8dc64f3c94 100644 --- a/biblio/citation-style-language/citeproc-node-label.lua +++ b/biblio/citation-style-language/citeproc-node-label.lua @@ -70,7 +70,9 @@ function Label:_is_variable_plural(variable, context) return #variable > 1 elseif variable_type == "number" then if util.startswith(variable, "number-of-") then - return tonumber(value) > 1 + -- Issue #27: "number-of-pages": "91–129" + value = string.match(tostring(value), "%d+") + return value and tonumber(value) > 1 else value = tostring(value) -- label_CollapsedPageNumberPluralDetection.txt -- cgit v1.2.3