မဝ်ဂျူ:string/replacementEscape
မံက်ပြာကတ်
- ပွမဗက် လိက်စၟတ်သမ္တီမချူလဝ်နကဵုခၞံဗဒှ်အပ္ဍဲ မဝ်ဂျူ:string/replacementEscape/documentationအတေံ။ [ပလေဝ်ဒါန်] Categories were auto-generated by မဝ်ဂျူ:documentation. [ပလေဝ်ဒါန်]
- လေန်မရပ်စပ်သုၚ်စောဲ: မုက်လိက်တံရိုဟ် • တံရိုဟ်မုက်လိက်ဓမၠေံဂမၠိုၚ် • လေန်ဂမၠိုၚ် • ပရေၚ်မပံၚ်စပ်ဂမၠိုၚ် • testcases • ကဠာသံၚ်ဗ္တဳ
local gsub = string.gsub
--[==[Escapes {%}, which is the only magic character used in replacement strings, which are given as the third argument to {string.gsub} and {mw.ustring.gsub}, as well as format strings given to {string.format} and {mw.ustring.format}.]==]
return function(str)
return (gsub(str, "%%", "%%%%"))
end