diff options
Diffstat (limited to 'biblio/citation-style-language/citeproc-node-label.lua')
-rw-r--r-- | biblio/citation-style-language/citeproc-node-label.lua | 4 |
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 |