Cannot print all values in stuff
This commit is contained in:
parent
c45dec6291
commit
1c871e99c0
|
@ -23,7 +23,7 @@ function M.lookup()
|
|||
local b = 1
|
||||
local doi_links = {}
|
||||
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
|
||||
if x == nil or y == nil then
|
||||
|
@ -37,7 +37,7 @@ function M.lookup()
|
|||
|
||||
print("Keywords: " .. keywords)
|
||||
print("URL: " .. url)
|
||||
print("links: " .. doi_links)
|
||||
print("links: " .. doi_links[0])
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
Loading…
Reference in New Issue