Content deleted Content added
sync with main module |
test to see if we can find an unpiped wikilink |
||
Line 17:
local b, c = string.find(s, "|%A*%a") -- find the first letter after the pipe
return string.sub(s, 1, c-1) .. string.upper(string.sub(s, c, c)) .. string.sub(s, c+1)
elseif string.find(s, "^%[%[[^%]]+%]%]") then
-- this is an unpiped wikilink
return s .. " >> unpiped link"
end
local letterpos = string.find(s, '%a')
|