Content deleted Content added
No edit summary |
fix unintended globals |
||
Line 26:
local first_text = mw.ustring.match (s, '^%[%[[^%]]+%]%]'); -- extract
if first_text then
▲ local prefix, upcased;
if mw.ustring.match (first_text, "^%[%[[^|]+|[^%]]+%]%]") then -- if <first_text> is a piped link
prefix, upcased = mw.ustring.match (s, '^(%[%[[^|]+|)(%W*%w)'); -- get '[[<link text>|' and first letter
|