Content deleted Content added
catch fragment that starts with lower case |
sync from sandbox - handling UTF-8 in ucfirst |
||
Line 21:
local s1 = ""
-- if it's a list chop off and (store as s1) everything up to the first <li>
local lipos =
if lipos then
s1 =
s =
end
-- s1 is either "" or the first part of the list markup, so we can continue
-- and prepend s1 to the returned string
local letterpos
if
-- this is a piped wikilink, so we capitalise the text, not the pipe
local _
_, letterpos =
else
letterpos =
end
if letterpos then
local first =
local letter =
local rest =
return s1 .. first ..
else
return s1 .. s
|