Skip to content

Commit

Permalink
add " to regex
Browse files Browse the repository at this point in the history
  • Loading branch information
strawbberrys authored Nov 12, 2021
1 parent bed4366 commit 8a8ebcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion methods/string.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ local function dataToString(data)
local dataType = type(data)

if dataType == "string" then
return '"' .. data:gsub("[%c%z\\]", gsubCharacters) .. '"'
return '"' .. data:gsub("[%c%z\\\"]", gsubCharacters) .. '"'
elseif dataType == "table" then
return tableToString(data)
elseif dataType == "userdata" then
Expand Down

0 comments on commit 8a8ebcc

Please sign in to comment.