Fix bug in %-escape bugfix
John Smith

John Smith commited on 2021-357 13:03:06
Showing 1 changed files, with 1 additions and 1 deletions.

... ...
@@ -137,7 +137,7 @@ elseif action == "r" then
137 137
                 io.read("l")
138 138
                 io.write(string.format(
139 139
                     "%s\nDid you get it? ",
140
-                    pst:gsub("%%A", pr.ans:gsub("%%", "%%%%"))
140
+                    pst:gsub("%%A", (pr.ans:gsub("%%", "%%%%")))
141 141
                 ))
142 142
                 local resp = io.read("l")
143 143
                 review.update(deck[ip[1]][ip[2]], st, isyes(resp))
144 144