summaryrefslogtreecommitdiff
path: root/.i3/scripts/json_escape.lua
diff options
context:
space:
mode:
Diffstat (limited to '.i3/scripts/json_escape.lua')
-rw-r--r--.i3/scripts/json_escape.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/.i3/scripts/json_escape.lua b/.i3/scripts/json_escape.lua
index 1715738..8723d3e 100644
--- a/.i3/scripts/json_escape.lua
+++ b/.i3/scripts/json_escape.lua
@@ -1,5 +1,5 @@
function conky_json(str)
- return string.gsub(conky_parse(str), '[\\"]', '\\%1')
+ return string.gsub(conky_parse(str), '([\\"])', '\\%1')
end
function conky_i3(...)