Cannot print all values in stuff

This commit is contained in:
Yannick Reiß 2024-02-18 19:36:52 +01:00
parent c45dec6291
commit 1c871e99c0
No known key found for this signature in database
GPG Key ID: 5A3AF456F0A0338C
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ function M.lookup()
local b = 1 local b = 1
local doi_links = {} local doi_links = {}
while true do while true do
local x, y = response:find("//doi/[a-zA-Z]+/10.[0-9]+/[0-9.]+/gm", b, false) local x, y = response:find("/doi/[a-zA-Z]+/10.[0-9]+/[0-9.]+/gm", b, false)
-- stop if no further occurrences are found -- stop if no further occurrences are found
if x == nil or y == nil then if x == nil or y == nil then
@ -37,7 +37,7 @@ function M.lookup()
print("Keywords: " .. keywords) print("Keywords: " .. keywords)
print("URL: " .. url) print("URL: " .. url)
print("links: " .. doi_links) print("links: " .. doi_links[0])
end end
return M return M