Fix regular expression

This commit is contained in:
Yannick Reiß 2024-02-18 19:53:20 +01:00
parent 70dcc9d091
commit bd593dbc51
No known key found for this signature in database
GPG Key ID: 5A3AF456F0A0338C
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,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.]+", 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