Skip to content

Commit

Permalink
* fixed: NSString constant extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
dkimitsa committed Sep 7, 2020
1 parent 5877115 commit 5a05d6f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bro-gen.rb
Expand Up @@ -2718,7 +2718,10 @@ def extract_static_constant_value(cursor)
value = value[1..-1] if value.start_with?('@"') && value.end_with?('"')
when :cursor_integer_literal
value = cursor.extent.text
when :cursor_unexposed_expr, :cursor_binary_operator
when :cursor_unexposed_expr
value = cursor.extent.text
value = value[1..-1] if value.start_with?('@"') && value.end_with?('"')
when :cursor_binary_operator
value = cursor.extent.text
end

Expand Down

0 comments on commit 5a05d6f

Please sign in to comment.