summaryrefslogtreecommitdiff
path: root/biblio/citation-style-language/citeproc-node-label.lua
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2022-12-26 03:03:16 +0000
committerNorbert Preining <norbert@preining.info>2022-12-26 03:03:16 +0000
commit200df2fd74322d3c7b4bb2a69e711a40265ead1b (patch)
tree9a545919fa0f041b8bac6341e8afb7b7b555ff8e /biblio/citation-style-language/citeproc-node-label.lua
parent90ef58ebc56f69220f860d466e1e21ed68ce9a55 (diff)
CTAN sync 202212260303
Diffstat (limited to 'biblio/citation-style-language/citeproc-node-label.lua')
-rw-r--r--biblio/citation-style-language/citeproc-node-label.lua4
1 files changed, 3 insertions, 1 deletions
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