Skip to content

Commit

Permalink
fix escapes (vesoft-inc#152)
Browse files Browse the repository at this point in the history
* get rid of guava dependency

* fix compile

* check port and add test

* fix escapes
  • Loading branch information
Nicole00 authored Aug 7, 2023
1 parent 68ef4c4 commit 1f40692
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 1f40692

Please sign in to comment.