From c7c70c85e95d394be41ae6bbb611cc9567cd7340 Mon Sep 17 00:00:00 2001 From: nanhe Date: Tue, 14 Jan 2025 23:20:45 +0800 Subject: [PATCH] fix field name for object --- lib/helper.js | 2 +- test/fixtures/function/Client.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/helper.js b/lib/helper.js index 1da9be4..451da6c 100644 --- a/lib/helper.js +++ b/lib/helper.js @@ -153,7 +153,7 @@ function md2Html(mdText) { } function _escape(str) { - return str.includes('-') ? `'${str}'` : str; + return str.includes('-') ? `${str}` : str; } function _string(str) { diff --git a/test/fixtures/function/Client.java b/test/fixtures/function/Client.java index 97070ce..1d24fd8 100644 --- a/test/fixtures/function/Client.java +++ b/test/fixtures/function/Client.java @@ -15,7 +15,7 @@ public static java.util.Map helloMap() throws Exception { return TeaConverter.merge(String.class, TeaConverter.buildMap( new TeaPair("key", "value"), - new TeaPair("'key-1'", "value-1"), + new TeaPair("key-1", "value-1"), new TeaPair("\"\"", "value-2") ), m