From 1f4069212acc17f662918984395641b1889a6edf Mon Sep 17 00:00:00 2001 From: Anqi Date: Mon, 7 Aug 2023 14:45:21 +0800 Subject: [PATCH] fix escapes (#152) * get rid of guava dependency * fix compile * check port and add test * fix escapes --- .../vesoft/exchange/common/utils/NebulaUtils.scala | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/exchange-common/src/main/scala/com/vesoft/exchange/common/utils/NebulaUtils.scala b/exchange-common/src/main/scala/com/vesoft/exchange/common/utils/NebulaUtils.scala index 3720c622..82fd1a2b 100644 --- a/exchange-common/src/main/scala/com/vesoft/exchange/common/utils/NebulaUtils.scala +++ b/exchange-common/src/main/scala/com/vesoft/exchange/common/utils/NebulaUtils.scala @@ -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 }