From 987042a9dc3859acb0c623c3fa1f7f17720b90cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Fabianski?= Date: Thu, 25 Jan 2024 15:56:00 +0100 Subject: [PATCH] fix: add character literal to string (#1475) --- internal/languages/java/detectors/string/string.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/languages/java/detectors/string/string.go b/internal/languages/java/detectors/string/string.go index 66b8a0a8e..372675893 100644 --- a/internal/languages/java/detectors/string/string.go +++ b/internal/languages/java/detectors/string/string.go @@ -27,7 +27,7 @@ func (detector *stringDetector) DetectAt( detectorContext types.Context, ) ([]interface{}, error) { switch node.Type() { - case "string_literal": + case "string_literal", "character_literal": return []interface{}{common.String{ Value: stringutil.StripQuotes(node.Content()), IsLiteral: true,