Module:Sandbox/Erutuon: Difference between revisions

Content deleted Content added
fix
documentation
Line 73:
local expanded_pattern = Latn_pattern
:gsub('%[(.-)%]', '%1')
:gsub( -- Find two UTF-8-encoded characters separated by hyphen-minus.
:gsub(
'([%z\1-\127\194-\244][\128-\191]*)%-([%z\1-\127\194-\244][\128-\191]*)',
function (char1, char2)
return expand_range(char1, char2)
end)
:gsub('^%s*', '') -- Remove initial '\n ' to avoid creating unwanted pre element.
return ('* <div style="overflow-wrap: break-word;">%s</div><br>%s')
:format(expanded_pattern, show_scripts(expanded_pattern))
end