Fix regular expression

This commit is contained in:
2024-02-18 19:53:20 +01:00
parent 70dcc9d091
commit bd593dbc51

View File

@@ -22,7 +22,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.]+", b, false)
-- stop if no further occurrences are found
if x == nil or y == nil then