From 27734a23b18b1534b06cb2889c5e15f3b42cceae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9D=B4=EB=8C=80=ED=9D=AC?= Date: Wed, 17 Dec 2025 17:15:11 +0900 Subject: [PATCH] Update internal/util/translator.go Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com> --- internal/util/translator.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/internal/util/translator.go b/internal/util/translator.go index 21ba7c7d..eca38a30 100644 --- a/internal/util/translator.go +++ b/internal/util/translator.go @@ -33,9 +33,8 @@ func Walk(value gjson.Result, path, field string, paths *[]string) { // . -> \. // * -> \* // ? -> \? - safeKey := strings.ReplaceAll(key.String(), ".", "\\.") - safeKey = strings.ReplaceAll(safeKey, "*", "\\*") - safeKey = strings.ReplaceAll(safeKey, "?", "\\?") + var keyReplacer = strings.NewReplacer(".", "\\.", "*", "\\*", "?", "\\?") + safeKey := keyReplacer.Replace(key.String()) if path == "" { childPath = safeKey