Skip to content

Commit

Permalink
Revert "fix escapes (vesoft-inc#152)" (vesoft-inc#178)
Browse files Browse the repository at this point in the history
This reverts commit 1f40692.
  • Loading branch information
Nicole00 committed Nov 27, 2023
1 parent 9479d2d commit 74ebce3
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,22 +74,22 @@ object NebulaUtils {
s = s.replaceAll("\\\\", "\\\\\\\\")
}
if (s.contains("\t")) {
s = s.replaceAll("\t", "\\\t")
s = s.replaceAll("\t", "\\\\t")
}
if (s.contains("\n")) {
s = s.replaceAll("\n", "\\\n")
s = s.replaceAll("\n", "\\\\n")
}
if (s.contains("\"")) {
s = s.replaceAll("\"", "\\\"")
s = s.replaceAll("\"", "\\\\\"")
}
if (s.contains("\'")) {
s = s.replaceAll("\'", "\\\'")
s = s.replaceAll("\'", "\\\\'")
}
if (s.contains("\r")) {
s = s.replaceAll("\r", "\\\r")
s = s.replaceAll("\r", "\\\\r")
}
if (s.contains("\b")) {
s = s.replaceAll("\b", "\\\b")
s = s.replaceAll("\b", "\\\\b")
}
s
}
Expand Down

0 comments on commit 74ebce3

Please sign in to comment.