summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/scripts/citation-style-language/citeproc-util.lua
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/scripts/citation-style-language/citeproc-util.lua')
-rw-r--r--Master/texmf-dist/scripts/citation-style-language/citeproc-util.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/Master/texmf-dist/scripts/citation-style-language/citeproc-util.lua b/Master/texmf-dist/scripts/citation-style-language/citeproc-util.lua
index 302e5b72c5e..97ac6d010ef 100644
--- a/Master/texmf-dist/scripts/citation-style-language/citeproc-util.lua
+++ b/Master/texmf-dist/scripts/citation-style-language/citeproc-util.lua
@@ -233,7 +233,7 @@ end
---@return string[]
function util.split(str, sep, maxsplit)
if type(str) ~= "string" then
- util.error("Invalid string.")
+ util.error("Invalid string")
end
sep = sep or "%s+"
if sep == "" then
@@ -398,6 +398,8 @@ function util.endswith(str, suffix)
return string.sub(str, -#suffix) == suffix
end
+---@param str string | number
+---@return boolean
function util.is_numeric(str)
if str == nil or str == "" then
return false