Модуль:Вложенные кавычки: различия между версиями
Buto (обсуждение | вклад) Новая страница: «-- -- Re-implement Template:Вложенные кавычки in Lua -- Replaces «» to „“ without touching links -- require( 'strict' ) local getArgs local p = {} local function isEmpty( str ) return str == nil or str == '' end local function protectLinks( str ) local links, head = {}, 0 while true do local s, e, link = str:find( '(%[%[.-%]%])', head ) if not link then return str, links elseif link:find( '[[', 3, true ) then head...» |
(нет различий)
|