fix
This commit is contained in:
parent
ca015c4f68
commit
756321f787
1 changed files with 2 additions and 2 deletions
|
|
@ -1021,8 +1021,8 @@ local function _cite_q (citeq_args)
|
||||||
|
|
||||||
for k, v in pairs(citeq_args) do
|
for k, v in pairs(citeq_args) do
|
||||||
if v == "" then citeq_args[k] = nil end -- remove blank parameters
|
if v == "" then citeq_args[k] = nil end -- remove blank parameters
|
||||||
local link = v:match ('%[%[([^|]+)|%1%]%]'); -- get <link> from <v> wikilink [[<link>|<label>]] when <link> and <label> are same value
|
local link = tostring (v):match ('%[%[([^|]+)|%1%]%]'); -- get <link> from <v> wikilink [[<link>|<label>]] when <link> and <label> are same value
|
||||||
if link then -- and if <link> and <label> are the same thing
|
if link then -- if <link> and <label> are the same thing
|
||||||
citeq_args[k] = '[[' .. link .. ']]'; -- rewrite <v> as [[<link>]]
|
citeq_args[k] = '[[' .. link .. ']]'; -- rewrite <v> as [[<link>]]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue