10.754
redigeringer
Lasse (diskussion | bidrag) No edit summary |
Lasse (diskussion | bidrag) No edit summary |
||
| Linje 243: | Linje 243: | ||
end | end | ||
if ( string. | if ( string.find(stykke, '.', 1, true) ) then | ||
-- punkter i stk 2658 | -- punkter i stk 2658 | ||
forstestykke, punkt = stykke:match("(.+)-(.+)") | forstestykke, punkt = stykke:match("(.+)-(.+)") | ||
if ( tonumber(punkt) | -- if ( tonumber(punkt) ~= nil ) then | ||
return '[https://www.martinus.dk/da/onlinebibliotek/dtt/index.php?bog=' .. bogIDer[bog] .. '&stk=' .. forstestykke .. '&pkt=' .. punkt .. ' ' .. stykbeskrivelse .. '])' | return '[https://www.martinus.dk/da/onlinebibliotek/dtt/index.php?bog=' .. bogIDer[bog] .. '&stk=' .. forstestykke .. '&pkt=' .. punkt .. ' ' .. stykbeskrivelse .. '])' | ||
end | -- end | ||
end | end | ||