Skip to content

Commit

Permalink
Merge pull request #9103 from justinstoller/bug/maint/PUP-11934_depre…
Browse files Browse the repository at this point in the history
…cated_codepoints_usage

(PUP-11934) Use String#each_codepoint instead of deprecated String#codepoints
  • Loading branch information
joshcooper authored Sep 13, 2023
2 parents 154df29 + dc95e7f commit 0a3ced0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/pops/time/timespan.rb
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ def internal_parse(str)
position = -1
fstart = 0

str.codepoints do |codepoint|
str.each_codepoint do |codepoint|
position += 1
if state == STATE_LITERAL
if codepoint == 0x25 # '%'
Expand Down

0 comments on commit 0a3ced0

Please sign in to comment.