Skip to content

Commit

Permalink
Explicitly unfreeze strings used by parser
Browse files Browse the repository at this point in the history
  • Loading branch information
mogest committed Jun 16, 2024
1 parent fb7bba6 commit dc758d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/prawn/svg/css/values_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def parse_function_call(name, rest)
arguments = []
in_quote = nil
in_escape = false
current = ''
current = +''

rest.each_char.with_index do |char, index|
if in_escape
Expand All @@ -52,7 +52,7 @@ def parse_function_call(name, rest)
in_escape = true
elsif in_quote.nil? && char == ','
arguments << current.strip
current = ''
current = +''
elsif in_quote.nil? && char == ')'
arguments << current.strip
return [[name, arguments], rest[index + 1..]]
Expand Down

0 comments on commit dc758d2

Please sign in to comment.