Skip to content

Commit

Permalink
fix: add character literal to string (#1475)
Browse files Browse the repository at this point in the history
  • Loading branch information
cfabianski authored Jan 25, 2024
1 parent e4c814e commit 987042a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/languages/java/detectors/string/string.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 987042a

Please sign in to comment.