Модуль:String: различия между версиями

Содержимое удалено Содержимое добавлено
+ str.rep
+ эскейпинг
Строка 381:
 
return result;
end
 
--[[
This function adds support for escaping parts of the patterns when using [plain=false].
]]
function str.escape( frame )
local new_args = str._getParameters( frame.args, {'pattern' } );
local pattern = new_args['pattern'] or '';
local result = '';
result = str._escapePattern( pattern );
return result;
end