Skip to content

Commit 085da25

Browse files
committed
Fixed backslashes in string literals not being serialized as \\.
1 parent 585096b commit 085da25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dumbParser.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5294,7 +5294,7 @@ do
52945294
local b1, b2, b3, b4 = stringByte(s, pos, pos+3)
52955295

52965296
-- Printable ASCII.
5297-
if R(b1,32,126) and b1 ~= 92 then
5297+
if R(b1,32,126) then
52985298
if b1 == quoteByte then tableInsert(buffer, "\\") ; tableInsert(buffer, quote) ; pos = pos + 1
52995299
elseif b1 == 92 then tableInsert(buffer, [[\\]]) ; pos = pos + 1
53005300
else tableInsert(buffer, stringSub(s, pos, pos)) ; pos = pos + 1

0 commit comments

Comments
 (0)