We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c9943a2 commit 5331a38Copy full SHA for 5331a38
lib/dtutils/string.lua
@@ -331,9 +331,11 @@ dtutils_string.libdoc.functions["sanitize_lua"] = {
331
function dtutils_string.sanitize_lua(str)
332
local old_log_level = log.log_level()
333
log.log_level(dtutils_string.log_level)
334
+ str = string.gsub(str, "%%", "%%%%")
335
str = string.gsub(str, "%-", "%%-")
336
str = string.gsub(str, "%(", "%%(")
337
str = string.gsub(str, "%)", "%%)")
338
+ str = string.gsub(str, "+", "%%+")
339
log.log_level(old_log_level)
340
return str
341
end
0 commit comments