Content deleted Content added
fix ucfirst: piped link might not have a letter; this fixes an error in Baby Come On which uses ucfirst("+44") |
fix brain failure |
||
Line 33:
if string.find(s, "^%[%[[^|]+|[^%]]+%]%]") then
-- this is a piped wikilink, so we capitalise the text, not the pipe
local _
_, letterpos = string.find(s, "|%A*%a") -- find the first letter after the pipe else
letterpos = string.find(s, '%a')
|