Skip to content

Commit

Permalink
Use each_char instead of chars.each
Browse files Browse the repository at this point in the history
  • Loading branch information
mogest committed Jun 16, 2024
1 parent 6bd9870 commit fb7bba6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/prawn/svg/css/font_family_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def self.parse(string)
current = nil
fonts = []

string.chars.each do |char|
string.each_char do |char|
if in_escape
in_escape = false
if current.nil?
Expand Down
2 changes: 1 addition & 1 deletion lib/prawn/svg/css/values_parser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def parse_function_call(name, rest)
in_escape = false
current = ''

rest.chars.each.with_index do |char, index|
rest.each_char.with_index do |char, index|
if in_escape
current << char
in_escape = false
Expand Down

0 comments on commit fb7bba6

Please sign in to comment.