Modul:JSONutil: Unterschied zwischen den Versionen
(2019-07-15) |
(2019-07-18) |
||
Zeile 1: | Zeile 1: | ||
local JSONutil = { suite = "JSONutil", | local JSONutil = { suite = "JSONutil", | ||
serial = "2019-07- | serial = "2019-07-18", | ||
item = 63869449 } | item = 63869449 } | ||
--[=[ | --[=[ | ||
Zeile 94: | Zeile 94: | ||
if i then | if i then | ||
s = mw.text.trim( s ) | s = mw.text.trim( s ) | ||
if s | if s:find( "/", 1, true ) then | ||
s = f( s, i, f ) | s = f( s, i, f ) | ||
end | end | ||
Zeile 221: | Zeile 221: | ||
elseif not ( r or last ) then | elseif not ( r or last ) then | ||
stub = suffix or apply or "" | stub = suffix or apply or "" | ||
j = stub:find( "/", 1, true ) | |||
i, stub = pcall( free, stub, free ) | if j then | ||
i, stub = pcall( free, stub, j, free ) | |||
else | else | ||
i = true | i = true |