提交 8a5f9352 编写于 作者: M Mark Needham

change in what Cypher allows as an unquoted property key

上级 c53d0e2a
......@@ -674,7 +674,7 @@ public class Util {
}
public static String quote(String var) {
return SourceVersion.isIdentifier(var) && !var.startsWith("$") ? var : '`' + var + '`';
return SourceVersion.isIdentifier(var) && !var.contains("$") ? var : '`' + var + '`';
}
public static String sanitizeAndQuote(String var) {
......
......@@ -26,7 +26,7 @@ public class UtilQuoteTest {
{ "_id", true },
{ "some_var", true },
{ "$lock", false },
{ "has$inside", true },
{ "has$inside", false },
{ "ähhh", true },
{ "rübe", true },
{ "rådhuset", true },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册